Removed not used parameters for layer stats
This commit is contained in:
@@ -5,13 +5,13 @@ function StatsBackend() {
|
||||
|
||||
module.exports = StatsBackend;
|
||||
|
||||
StatsBackend.prototype.getStats = function(mapConfig, params, dbConnection, callback) {
|
||||
StatsBackend.prototype.getStats = function(mapConfig, dbConnection, callback) {
|
||||
var enabledFeatures = global.environment.enabledFeatures;
|
||||
var layerStatsEnabled = enabledFeatures ? enabledFeatures.layerStats: false;
|
||||
if (layerStatsEnabled) {
|
||||
var layerStats = windshaftStats();
|
||||
layerStats.getStats(mapConfig, params, dbConnection, callback);
|
||||
layerStats.getStats(mapConfig, dbConnection, callback);
|
||||
} else {
|
||||
callback(null, null);
|
||||
return callback(null, null);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -367,7 +367,7 @@ function(req, res, mapconfig, layergroup, analysesResults, rendererParams, callb
|
||||
function fetchLayersStats(err) {
|
||||
assert.ifError(err);
|
||||
var next = this;
|
||||
self.statsBackend.getStats(mapconfig, rendererParams, dbConnection, function(err, layersStats) {
|
||||
self.statsBackend.getStats(mapconfig, dbConnection, function(err, layersStats) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user