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;