Pass only needed params to map backend
This commit is contained in:
parent
d029f81992
commit
4ff8d6fbc3
@ -344,7 +344,9 @@ function createLayergroup (mapBackend, userLimitsApi, pgConnection, affectedTabl
|
||||
res.locals.mapConfig = mapConfig;
|
||||
res.locals.analysesResults = context.analysesResults;
|
||||
|
||||
mapBackend.createLayergroup(mapConfig, res.locals, mapConfigProvider, (err, layergroup) => {
|
||||
const mapParams = { dbuser, dbname, dbpassword, dbhost, dbport };
|
||||
|
||||
mapBackend.createLayergroup(mapConfig, mapParams, mapConfigProvider, (err, layergroup) => {
|
||||
req.profiler.done('createLayergroup');
|
||||
if (err) {
|
||||
return next(err);
|
||||
|
Loading…
Reference in New Issue
Block a user