Rename param

This commit is contained in:
Raul Ochoa 2016-05-23 18:08:42 +02:00
parent efcb73e0d1
commit 31a0b01a27

View File

@ -9,7 +9,7 @@ function MapConfigOverviewsAdapter(overviewsMetadataApi, filterStatsApi) {
module.exports = MapConfigOverviewsAdapter; module.exports = MapConfigOverviewsAdapter;
MapConfigOverviewsAdapter.prototype.getMapConfig = function(username, requestMapConfig, analysesResults, callback) { MapConfigOverviewsAdapter.prototype.getMapConfig = function(user, requestMapConfig, analysesResults, callback) {
var self = this; var self = this;
var layers = requestMapConfig.layers; var layers = requestMapConfig.layers;
@ -24,7 +24,7 @@ MapConfigOverviewsAdapter.prototype.getMapConfig = function(username, requestMap
if ( layer.type !== 'mapnik' && layer.type !== 'cartodb' ) { if ( layer.type !== 'mapnik' && layer.type !== 'cartodb' ) {
return done(null, layer); return done(null, layer);
} }
self.overviewsMetadataApi.getOverviewsMetadata(username, layer.options.sql, function(err, metadata){ self.overviewsMetadataApi.getOverviewsMetadata(user, layer.options.sql, function(err, metadata){
if (err) { if (err) {
done(err, layer); done(err, layer);
} else { } else {
@ -53,7 +53,7 @@ MapConfigOverviewsAdapter.prototype.getMapConfig = function(username, requestMap
var next_step = this; var next_step = this;
if ( filters ) { if ( filters ) {
self.filterStatsApi.getFilterStats( self.filterStatsApi.getFilterStats(
username, user,
unfiltered_query, filters, unfiltered_query, filters,
function(err, stats) { function(err, stats) {
if ( !err ) { if ( !err ) {