Fix how the getOverleafPlanCode integration is done

This commit is contained in:
Shane Kilkelly 2017-12-08 11:29:11 +00:00
parent 3adbc52089
commit a675e774b8

View file

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