mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix how the getOverleafPlanCode
integration is done
This commit is contained in:
parent
3adbc52089
commit
a675e774b8
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue