Merge pull request #471 from CartoDB/mapconfig-fix-adapters-order

Order of adapters: named maps should expand named layers as first step
This commit is contained in:
Raul Ochoa 2016-05-25 13:50:34 +02:00
commit 862f8b4ce6

View File

@ -157,9 +157,9 @@ module.exports = function(serverOptions) {
var turboCartoParser = new TurboCartoParser(pgQueryRunner);
var mapConfigAdapter = new MapConfigAdapter([
new MapConfigNamedLayersAdapter(templateMaps, pgConnection),
new SqlWrapMapConfigAdapter(),
new AnalysisMapConfigAdapter(analysisBackend),
new MapConfigNamedLayersAdapter(templateMaps, pgConnection),
new MapConfigOverviewsAdapter(overviewsMetadataApi, filterStatsApi),
new TurboCartoAdapter(turboCartoParser)
]);