diff --git a/lib/cartodb/controllers/map.js b/lib/cartodb/controllers/map.js index a9f2f327..b153b607 100644 --- a/lib/cartodb/controllers/map.js +++ b/lib/cartodb/controllers/map.js @@ -60,7 +60,7 @@ MapController.prototype.register = function(app) { this.afterLayergroupCreateBuilder({ includeQuery: true }), - respond, + sendResponse, augmentError({ label: 'ANONYMOUS LAYERGROUP', addContext: true @@ -77,7 +77,7 @@ MapController.prototype.register = function(app) { this.afterLayergroupCreateBuilder({ includeQuery: true }), - respond, + sendResponse, augmentError({ label: 'ANONYMOUS LAYERGROUP', addContext: true @@ -94,7 +94,7 @@ MapController.prototype.register = function(app) { this.afterLayergroupCreateBuilder({ useTemplateHash: true }), - respond, + sendResponse, augmentError({ label: 'NAMED MAP LAYERGROUP' }) @@ -110,7 +110,7 @@ MapController.prototype.register = function(app) { this.afterLayergroupCreateBuilder({ useTemplateHash: true }), - respond, + sendResponse, augmentError({ label: 'NAMED MAP LAYERGROUP' }) @@ -284,7 +284,7 @@ MapController.prototype.instantiateLayergroup = function(req, res, next) { }); }; -function respond (req, res) { +function sendResponse (req, res) { const { layergroup } = res.locals; res.status(200);