From bdf4827300c44581e908b69fbe5b2a458627ff0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Tue, 14 Nov 2017 11:28:06 +0100 Subject: [PATCH] Fix bad call to next middleware callback --- lib/cartodb/controllers/analyses.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cartodb/controllers/analyses.js b/lib/cartodb/controllers/analyses.js index ffc0bea1..e97804f9 100644 --- a/lib/cartodb/controllers/analyses.js +++ b/lib/cartodb/controllers/analyses.js @@ -84,7 +84,7 @@ AnalysesController.prototype.catalog = function (req, res, next) { err.http_status = 401; } - next(req, res, err); + next(err); } else { self.sendResponse(req, res, { catalog: catalogWithTables }); }