We leave only one feature flag for stats
This commit is contained in:
@@ -7,9 +7,8 @@ module.exports = StatsBackend;
|
||||
|
||||
StatsBackend.prototype.getStats = function(mapConfig, params, dbConnection, callback) {
|
||||
var enabledFeatures = global.environment.enabledFeatures;
|
||||
var layerMetadataEnabled = enabledFeatures ? enabledFeatures.layerMetadata : false;
|
||||
var layerStatsEnabled = enabledFeatures ? enabledFeatures.layerStats: false;
|
||||
if (layerMetadataEnabled && layerStatsEnabled) {
|
||||
if (layerStatsEnabled) {
|
||||
var layerStats = windshaftStats();
|
||||
layerStats.getStats(mapConfig, params, dbConnection, callback);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user