diff --git a/services/web/app/coffee/Features/Subscription/SubscriptionGroupController.coffee b/services/web/app/coffee/Features/Subscription/SubscriptionGroupController.coffee index 95231357ac..803732e44c 100644 --- a/services/web/app/coffee/Features/Subscription/SubscriptionGroupController.coffee +++ b/services/web/app/coffee/Features/Subscription/SubscriptionGroupController.coffee @@ -52,7 +52,7 @@ module.exports = return res.sendStatus 500 res.send() - exportGroupCsv: (req, res)-> + exportGroupCsv: (req, res, next)-> user_id = AuthenticationController.getLoggedInUserId(req) logger.log user_id: user_id, "exporting group csv" getManagedSubscription user_id, (err, subscription)-> @@ -71,7 +71,7 @@ module.exports = res.send(groupCsv) # legacy route - redirectToSubscriptionGroupAdminPage: (req, res) -> + redirectToSubscriptionGroupAdminPage: (req, res, next) -> user_id = AuthenticationController.getLoggedInUserId(req) getManagedSubscription user_id, (error, subscription) -> return next(error) if error?