Merge pull request #1045 from sharelatex/bg-fix-missing-next-in-subscription-group-controller

fix missing next argument

GitOrigin-RevId: 290741a98a3fb7463d6a6dd052f90c8ffe4e62ce
This commit is contained in:
Timothée Alby 2018-10-24 15:50:55 +02:00 committed by sharelatex
parent b123f830ff
commit 7af86b0704

View file

@ -52,7 +52,7 @@ module.exports =
return res.sendStatus 500 return res.sendStatus 500
res.send() res.send()
exportGroupCsv: (req, res)-> exportGroupCsv: (req, res, next)->
user_id = AuthenticationController.getLoggedInUserId(req) user_id = AuthenticationController.getLoggedInUserId(req)
logger.log user_id: user_id, "exporting group csv" logger.log user_id: user_id, "exporting group csv"
getManagedSubscription user_id, (err, subscription)-> getManagedSubscription user_id, (err, subscription)->
@ -71,7 +71,7 @@ module.exports =
res.send(groupCsv) res.send(groupCsv)
# legacy route # legacy route
redirectToSubscriptionGroupAdminPage: (req, res) -> redirectToSubscriptionGroupAdminPage: (req, res, next) ->
user_id = AuthenticationController.getLoggedInUserId(req) user_id = AuthenticationController.getLoggedInUserId(req)
getManagedSubscription user_id, (error, subscription) -> getManagedSubscription user_id, (error, subscription) ->
return next(error) if error? return next(error) if error?