Do not use underscore

This commit is contained in:
Daniel García Aubert 2018-05-30 20:10:59 +02:00
parent c0e6bf1299
commit 94a5020faf

View File

@ -1,4 +1,3 @@
const _ = require('underscore');
const dot = require('dot');
const QueryTables = require('cartodb-query-tables');
@ -72,14 +71,14 @@ module.exports = class MapStoreMapConfigProvider {
}
createKey (base) {
const tplValues = _.defaults({}, this.params, {
const tplValues = Object.assign({
dbname: '',
token: '',
dbuser: '',
format: '',
layer: '',
scale_factor: 1
});
}, this.params);
return (base) ? baseKeyTpl(tplValues) : rendererKeyTpl(tplValues);
}