Rename fields from headers of metrics
This commit is contained in:
@@ -41,9 +41,9 @@ function getEventData (req, res, tags) {
|
||||
}
|
||||
|
||||
const attributes = Object.assign({}, {
|
||||
metrics_event: normalizedField(req.get('Carto-Event')),
|
||||
client_event: normalizedField(req.get('Carto-Event')),
|
||||
client_event_group_id: normalizedField(req.get('Carto-Event-Group-Id')),
|
||||
event_source: normalizedField(req.get('Carto-Event-Source')),
|
||||
event_group_id: normalizedField(req.get('Carto-Event-Group-Id')),
|
||||
event_time: new Date().toISOString(),
|
||||
user_id: res.locals.userId,
|
||||
user_agent: req.get('User-Agent'),
|
||||
|
||||
Reference in New Issue
Block a user