remove step: function 2
This commit is contained in:
@@ -47,23 +47,26 @@ MapConfigOverviewsAdapter.prototype.getMapConfig = function (user, requestMapCon
|
||||
}
|
||||
}
|
||||
|
||||
function collectStatsData(err, filters, unfiltered_query) {
|
||||
var next_step = this;
|
||||
if (filters) {
|
||||
self.filterStatsBackend.getFilterStats(
|
||||
user,
|
||||
unfiltered_query, filters,
|
||||
function (err, stats) {
|
||||
if (!err) {
|
||||
query_rewrite_data.filter_stats = stats;
|
||||
}
|
||||
return next_step(err);
|
||||
if (filters) {
|
||||
self.filterStatsBackend.getFilterStats(
|
||||
user,
|
||||
unfiltered_query,
|
||||
filters,
|
||||
function (err, stats) {
|
||||
if (err) {
|
||||
// next with error
|
||||
}
|
||||
);
|
||||
} else {
|
||||
return next_step(null);
|
||||
}
|
||||
},
|
||||
|
||||
query_rewrite_data.filter_stats = stats;
|
||||
|
||||
// next
|
||||
}
|
||||
);
|
||||
} else {
|
||||
// next
|
||||
}
|
||||
|
||||
|
||||
function addDataToLayer(err) {
|
||||
if (!err && !_.isEmpty(metadata)) {
|
||||
layer = _.extend({}, layer);
|
||||
|
||||
Reference in New Issue
Block a user