Revert: move map-config assignment

This commit is contained in:
Daniel García Aubert 2018-03-23 10:57:35 +01:00
parent c31639ebbd
commit ebefba9e32

View File

@ -341,6 +341,9 @@ function createLayergroup (mapBackend, userLimitsApi, pgConnection, affectedTabl
params
);
res.locals.mapConfig = mapConfig;
res.locals.analysesResults = context.analysesResults;
const mapParams = { dbuser, dbname, dbpassword, dbhost, dbport };
mapBackend.createLayergroup(mapConfig, mapParams, mapConfigProvider, (err, layergroup) => {
@ -350,9 +353,7 @@ function createLayergroup (mapBackend, userLimitsApi, pgConnection, affectedTabl
}
res.body = layergroup;
res.locals.mapConfig = mapConfig;
res.locals.mapConfigProvider = mapConfigProvider;
res.locals.analysesResults = context.analysesResults;
next();
});