From 83ab65163d92c85629f8f8edc8c414913bc58679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Wed, 7 Mar 2018 18:41:41 +0100 Subject: [PATCH] Rename attributes middleware --- lib/cartodb/controllers/layergroup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cartodb/controllers/layergroup.js b/lib/cartodb/controllers/layergroup.js index 452cdfca..7c487c1e 100644 --- a/lib/cartodb/controllers/layergroup.js +++ b/lib/cartodb/controllers/layergroup.js @@ -106,7 +106,7 @@ LayergroupController.prototype.register = function(app) { userMiddleware(), this.prepareContext, getMapStoreMapConfigProvider(this.mapStore, this.userLimitsApi), - attributes(this.attributesBackend), + getFeatureAttributes(this.attributesBackend), setCacheControlHeader(), setLastModifiedHeader(), getAffectedTables(this.layergroupAffectedTables, this.pgConnection), @@ -348,8 +348,8 @@ function dataviewSearch (dataviewBackend) { }; } -function attributes (attributesBackend) { - return function attributesMiddleware (req, res, next) { +function getFeatureAttributes (attributesBackend) { + return function getFeatureAttributesMiddleware (req, res, next) { req.profiler.start('windshaft.maplayer_attribute'); const { mapConfigProvider } = res.locals;