Centralize common headers, this will help up to move biz metrics out of the process
This commit is contained in:
@@ -346,11 +346,9 @@ function incrementMapViews ({ metadataBackend }) {
|
||||
return next();
|
||||
}
|
||||
|
||||
const statTag = mapConfig.obj().stat_tag;
|
||||
res.locals.mapConfig = mapConfig;
|
||||
|
||||
if (statTag) {
|
||||
res.set('Carto-Stat-Tag', `${statTag}`);
|
||||
}
|
||||
const statTag = mapConfig.obj().stat_tag;
|
||||
|
||||
metadataBackend.incMapviewCount(user, statTag, (err) => {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user