From 81cd2adfd340876c4570e52275e83476ccbbdf6b Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Thu, 31 Mar 2016 17:36:06 +0100 Subject: [PATCH] member_ids != members_id --- .../coffee/Features/Subscription/SubscriptionUpdater.coffee | 2 +- .../coffee/Subscription/SubscriptionUpdaterTests.coffee | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"