From 7ba3394508b4970a313fa4909b18b2b0b06652b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Fri, 23 Mar 2018 14:10:27 +0100 Subject: [PATCH] Do not merge req.params and req.query into res.locals (don't use locals middleware in analysis controller) --- lib/cartodb/controllers/analyses.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/cartodb/controllers/analyses.js b/lib/cartodb/controllers/analyses.js index 0da18bf6..81b1757a 100644 --- a/lib/cartodb/controllers/analyses.js +++ b/lib/cartodb/controllers/analyses.js @@ -1,7 +1,6 @@ const PSQL = require('cartodb-psql'); const cors = require('../middleware/cors'); const user = require('../middleware/user'); -const locals = require('../middleware/locals'); const cleanUpQueryParams = require('../middleware/clean-up-query-params'); const layergroupToken = require('../middleware/layergroup-token'); const credentials = require('../middleware/credentials'); @@ -28,7 +27,6 @@ AnalysesController.prototype.register = function (app) { `${mapconfigBasePath}/analyses/catalog`, cors(), cleanUpQueryParams(), - locals(), user(), rateLimit(this.userLimitsApi, RATE_LIMIT_ENDPOINTS_GROUPS.ANALYSIS_CATALOG), layergroupToken(),