Move assignments
This commit is contained in:
parent
4ff8d6fbc3
commit
c31639ebbd
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user