From 28400f4544933290ccd9a7e65951db01f82103b3 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Wed, 13 Apr 2016 19:15:06 +0200 Subject: [PATCH] Better naming --- lib/cartodb/controllers/layergroup.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/cartodb/controllers/layergroup.js b/lib/cartodb/controllers/layergroup.js index d00e7076..fc2ba0e1 100644 --- a/lib/cartodb/controllers/layergroup.js +++ b/lib/cartodb/controllers/layergroup.js @@ -118,13 +118,13 @@ LayergroupController.prototype.dataview = function(req, res) { ); self.dataviewBackend.getDataview(mapConfigProvider, req.context.user, req.params, this); }, - function finish(err, tile, stats) { + function finish(err, dataview, stats) { req.profiler.add(stats || {}); if (err) { self.sendError(req, res, err, 'GET DATAVIEW'); } else { - self.sendResponse(req, res, tile, 200); + self.sendResponse(req, res, dataview, 200); } } ); @@ -146,13 +146,13 @@ LayergroupController.prototype.dataviewSearch = function(req, res) { ); self.dataviewBackend.search(mapConfigProvider, req.context.user, req.params, this); }, - function finish(err, tile, stats) { + function finish(err, searchResult, stats) { req.profiler.add(stats || {}); if (err) { self.sendError(req, res, err, 'GET DATAVIEW SEARCH'); } else { - self.sendResponse(req, res, tile, 200); + self.sendResponse(req, res, searchResult, 200); } } ); @@ -174,13 +174,13 @@ LayergroupController.prototype.widget = function(req, res) { ); self.widgetBackend.getWidget(mapConfigProvider, req.params, this); }, - function finish(err, tile, stats) { + function finish(err, widget, stats) { req.profiler.add(stats || {}); if (err) { self.sendError(req, res, err, 'GET WIDGET'); } else { - self.sendResponse(req, res, tile, 200); + self.sendResponse(req, res, widget, 200); } } ); @@ -202,13 +202,13 @@ LayergroupController.prototype.widgetSearch = function(req, res) { ); self.widgetBackend.search(mapConfigProvider, req.params, this); }, - function finish(err, tile, stats) { + function finish(err, searchResult, stats) { req.profiler.add(stats || {}); if (err) { self.sendError(req, res, err, 'GET WIDGET'); } else { - self.sendResponse(req, res, tile, 200); + self.sendResponse(req, res, searchResult, 200); } } );