Ensure "map_id" and "cache_buster" as part of the event
This commit is contained in:
@@ -87,9 +87,6 @@ module.exports = class AnonymousMapController {
|
||||
from: {
|
||||
req: {
|
||||
query: { client: 'client' }
|
||||
},
|
||||
res: {
|
||||
body: { layergroupid: 'map_id' }
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -230,6 +227,7 @@ function createLayergroup (mapBackend, userLimitsBackend, pgConnection, affected
|
||||
);
|
||||
|
||||
res.locals.mapConfig = mapConfig;
|
||||
res.locals.mapConfigProvider = mapConfigProvider;
|
||||
res.locals.analysesResults = context.analysesResults;
|
||||
|
||||
const mapParams = { dbuser, dbname, dbpassword, dbhost, dbport };
|
||||
@@ -243,7 +241,6 @@ function createLayergroup (mapBackend, userLimitsBackend, pgConnection, affected
|
||||
|
||||
res.statusCode = 200;
|
||||
res.body = layergroup;
|
||||
res.locals.mapConfigProvider = mapConfigProvider;
|
||||
|
||||
next();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user