From a675e774b8f5828c869db4a066515feae2e8bca9 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Fri, 8 Dec 2017 11:29:11 +0000 Subject: [PATCH] Fix how the `getOverleafPlanCode` integration is done --- .../coffee/Features/Subscription/SubscriptionUpdater.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/Subscription/SubscriptionUpdater.coffee b/services/web/app/coffee/Features/Subscription/SubscriptionUpdater.coffee index 98d241fbd3..9b5fe83f88 100644 --- a/services/web/app/coffee/Features/Subscription/SubscriptionUpdater.coffee +++ b/services/web/app/coffee/Features/Subscription/SubscriptionUpdater.coffee @@ -111,7 +111,8 @@ module.exports = SubscriptionUpdater = SubscriptionLocator.getGroupSubscriptionMemberOf user_id, cb overleafPlanCode: (cb) -> Modules = require '../../infrastructure/Modules' - Modules.hooks.fire 'getOverleafPlanCode', user_id, cb + Modules.hooks.fire 'getOverleafPlanCode', user_id, (err, results) -> + cb(err, results[0]) async.series jobs, (err, results)-> if err? logger.err err:err, user_id:user, "error getting subscription or group for _setUsersMinimumFeatures"