Move assignments

This commit is contained in:
Daniel García Aubert 2018-03-22 19:38:56 +01:00
parent 4ff8d6fbc3
commit c31639ebbd

View File

@ -341,9 +341,6 @@ 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) => {
@ -353,7 +350,9 @@ function createLayergroup (mapBackend, userLimitsApi, pgConnection, affectedTabl
}
res.body = layergroup;
res.locals.mapConfig = mapConfig;
res.locals.mapConfigProvider = mapConfigProvider;
res.locals.analysesResults = context.analysesResults;
next();
});