typo
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = class NamedMapMapConfigProvider extends BaseMapConfigProvider {
|
||||
this.authToken = authToken;
|
||||
this.params = params;
|
||||
|
||||
// FIXME: why is this different thah that:
|
||||
// FIXME: why is this different than that:
|
||||
// this.cacheBuster = params.cache_buster || 0;
|
||||
// test: "should fail to use template from named map provider after template deletion"
|
||||
// check named-map-provider-cache invalidation
|
||||
@@ -98,17 +98,16 @@ module.exports = class NamedMapMapConfigProvider extends BaseMapConfigProvider {
|
||||
|
||||
const { user, rendererParams } = this;
|
||||
|
||||
this.mapConfigAdapter.getMapConfig(
|
||||
user, requestMapConfig, rendererParams, context, (err, mapConfig, stats = {}) => {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
this.mapConfigAdapter.getMapConfig(user, requestMapConfig, rendererParams, context, (err, mapConfig, stats = {}) => {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
this.mapConfig = (mapConfig === null) ? null : new MapConfig(mapConfig, context.datasource);
|
||||
this.analysesResults = context.analysesResults || [];
|
||||
this.mapConfig = (mapConfig === null) ? null : new MapConfig(mapConfig, context.datasource);
|
||||
this.analysesResults = context.analysesResults || [];
|
||||
|
||||
return callback(null, this.mapConfig, this.rendererParams, this.context, stats);
|
||||
});
|
||||
return callback(null, this.mapConfig, this.rendererParams, this.context, stats);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user