diff --git a/NEWS.md b/NEWS.md index 5725bb77..701cea00 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,8 +1,14 @@ # Changelog -## 2.26.4 +## 2.27.0 -Released 2016-mm-dd +Released 2016-03-09 + +New features: + - Add [Surrogate-Key](https://github.com/CartoDB/cartodb/wiki/CartoDB-Surrogate-Keys) headers to responses + +Enhancements: + - Use new `node-cartodb-query-tables` library to obtain affected tables in queries Announcements: - Remove deprecated tools directory diff --git a/lib/cartodb/controllers/map.js b/lib/cartodb/controllers/map.js index d646cf68..c314039a 100644 --- a/lib/cartodb/controllers/map.js +++ b/lib/cartodb/controllers/map.js @@ -173,20 +173,18 @@ MapController.prototype.create = function(req, res, prepareConfigFn) { ); }, function addOverviewsInformation(err, requestMapConfig, datasource) { - assert.ifError(err); - var next = this; - self.overviewsAdapter.getLayers(req.context.user, requestMapConfig.layers, - function(err, layers) { - if (err) { - return next(err); - } + assert.ifError(err); + var next = this; + self.overviewsAdapter.getLayers(req.context.user, requestMapConfig.layers, function(err, layers) { + if (err) { + return next(err); + } - if (layers) { - requestMapConfig.layers = layers; - } - return next(null, requestMapConfig, datasource); - } - ); + if (layers) { + requestMapConfig.layers = layers; + } + return next(null, requestMapConfig, datasource); + }); }, function createLayergroup(err, requestMapConfig, datasource) { assert.ifError(err); diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 2674f71e..851d8332 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,6 +1,6 @@ { "name": "windshaft-cartodb", - "version": "2.26.4", + "version": "2.27.0", "dependencies": { "body-parser": { "version": "1.14.2", diff --git a/package.json b/package.json index b5f6b345..8b00ea28 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "windshaft-cartodb", - "version": "2.26.4", + "version": "2.27.0", "description": "A map tile server for CartoDB", "keywords": [ "cartodb"