Do not rename output values

This commit is contained in:
Daniel García Aubert 2018-08-01 17:16:14 +02:00
parent 64329c3fac
commit 8f763d655d

View File

@ -71,7 +71,7 @@ function augmentLayer(overviewsMetadataBackend, filterStatsBackend, user, layer,
if (!filters) { if (!filters) {
if (!_.isEmpty(metadata)) { if (!_.isEmpty(metadata)) {
layer = Object.assign({}, layer); 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); return callback(null, layer);
@ -88,7 +88,7 @@ function augmentLayer(overviewsMetadataBackend, filterStatsBackend, user, layer,
if (!_.isEmpty(metadata)) { if (!_.isEmpty(metadata)) {
layer = Object.assign({}, layer); 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); return callback(null, layer);