diff --git a/lib/cartodb/models/mapconfig/adapter/mapconfig-overviews-adapter.js b/lib/cartodb/models/mapconfig/adapter/mapconfig-overviews-adapter.js index 074129ad..057a008c 100644 --- a/lib/cartodb/models/mapconfig/adapter/mapconfig-overviews-adapter.js +++ b/lib/cartodb/models/mapconfig/adapter/mapconfig-overviews-adapter.js @@ -71,7 +71,7 @@ function augmentLayer(overviewsMetadataBackend, filterStatsBackend, user, layer, if (!filters) { if (!_.isEmpty(metadata)) { layer = Object.assign({}, layer); - layer.options = Object.assign({}, layer.options, { queryRewriteData }); + layer.options = Object.assign({}, layer.options, { query_rewrite_data: queryRewriteData }); } return callback(null, layer); @@ -88,7 +88,7 @@ function augmentLayer(overviewsMetadataBackend, filterStatsBackend, user, layer, if (!_.isEmpty(metadata)) { layer = Object.assign({}, layer); - layer.options = Object.assign({}, layer.options, { queryRewriteData }); + layer.options = Object.assign({}, layer.options, { query_rewrite_data: queryRewriteData }); } return callback(null, layer);