From 7af86b070402ce5f7cef75b944193c291720bf75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Alby?= Date: Wed, 24 Oct 2018 15:50:55 +0200 Subject: [PATCH] Merge pull request #1045 from sharelatex/bg-fix-missing-next-in-subscription-group-controller fix missing next argument GitOrigin-RevId: 290741a98a3fb7463d6a6dd052f90c8ffe4e62ce --- .../Features/Subscription/SubscriptionGroupController.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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?