Ensure "map_id" and "cache_buster" as part of the event

This commit is contained in:
Daniel García Aubert
2020-04-29 14:32:08 +02:00
parent 70f0b6ea50
commit 798d010776
8 changed files with 120 additions and 45 deletions
+1 -4
View File
@@ -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();
});