diff --git a/services/web/app/coffee/Features/Subscription/SubscriptionUpdater.coffee b/services/web/app/coffee/Features/Subscription/SubscriptionUpdater.coffee index d24f8e53c8..b317be605a 100644 --- a/services/web/app/coffee/Features/Subscription/SubscriptionUpdater.coffee +++ b/services/web/app/coffee/Features/Subscription/SubscriptionUpdater.coffee @@ -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 diff --git a/services/web/test/UnitTests/coffee/Subscription/SubscriptionUpdaterTests.coffee b/services/web/test/UnitTests/coffee/Subscription/SubscriptionUpdaterTests.coffee index c91ca34023..3ae7eee71b 100644 --- a/services/web/test/UnitTests/coffee/Subscription/SubscriptionUpdaterTests.coffee +++ b/services/web/test/UnitTests/coffee/Subscription/SubscriptionUpdaterTests.coffee @@ -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"