diff --git a/lib/cartodb/middleware/allow-query-params.js b/lib/cartodb/middleware/allow-query-params.js index 7ec31d74..cf90e69b 100644 --- a/lib/cartodb/middleware/allow-query-params.js +++ b/lib/cartodb/middleware/allow-query-params.js @@ -1,8 +1,9 @@ -module.exports = function allowQueryParams(params) { +module.exports = function allowQueryParams (params) { if (!Array.isArray(params)) { throw new Error('allowQueryParams must receive an Array of params'); } - return function allowQueryParamsMiddleware(req, res, next) { + + return function allowQueryParamsMiddleware (req, res, next) { res.locals.allowedQueryParams = params; next(); };