member_ids != members_id

This commit is contained in:
Henry Oswald 2016-03-31 17:36:06 +01:00
parent d80191c03b
commit 81cd2adfd3
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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"