mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 01:23:59 +00:00
member_ids != members_id
This commit is contained in:
parent
d80191c03b
commit
81cd2adfd3
2 changed files with 3 additions and 3 deletions
|
@ -71,7 +71,7 @@ module.exports = SubscriptionUpdater =
|
|||
subscription.groupPlan = true
|
||||
subscription.membersLimit = plan.membersLimit
|
||||
subscription.save ->
|
||||
allIds = _.union subscription.members_id, [subscription.admin_id]
|
||||
allIds = _.union subscription.member_ids, [subscription.admin_id]
|
||||
jobs = allIds.map (user_id)->
|
||||
return (cb)->
|
||||
SubscriptionUpdater._setUsersMinimumFeatures user_id, cb
|
||||
|
|
|
@ -18,14 +18,14 @@ describe "SubscriptionUpdater", ->
|
|||
@allUserIds = ["13213", "dsadas", "djsaiud89"]
|
||||
@subscription = subscription =
|
||||
admin_id: @adminUser._id
|
||||
members_id: @allUserIds
|
||||
member_ids: @allUserIds
|
||||
save: sinon.stub().callsArgWith(0)
|
||||
freeTrial:{}
|
||||
planCode:"student_or_something"
|
||||
|
||||
@groupSubscription =
|
||||
admin_id: @adminUser._id
|
||||
members_id: @allUserIds
|
||||
member_ids: @allUserIds
|
||||
save: sinon.stub().callsArgWith(0)
|
||||
freeTrial:{}
|
||||
planCode:"group_subscription"
|
||||
|
|
Loading…
Reference in a new issue