Fix bad call to next middleware callback
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user