Pass only needed params to map backend

This commit is contained in:
Daniel García Aubert 2018-03-22 19:37:08 +01:00
parent d029f81992
commit 4ff8d6fbc3

View File

@ -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);