Revert: move map-config assignment
This commit is contained in:
parent
c31639ebbd
commit
ebefba9e32
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user