Merge branch 'master' into dgaubert/ch78384/maps-api-replace-log4js-logger-by-pino

This commit is contained in:
Daniel García Aubert
2020-06-22 12:12:45 +02:00
4 changed files with 81 additions and 3 deletions
@@ -11,6 +11,10 @@ module.exports = function setLastUpdatedTimeToLayergroup () {
}
if (!affectedTables) {
res.locals.cache_buster = 0;
layergroup.layergroupid = `${layergroup.layergroupid}:${res.locals.cache_buster}`;
layergroup.last_updated = new Date(res.locals.cache_buster).toISOString();
return next();
}