Consistent interface when returning no event for eventa data in metrics

This commit is contained in:
Daniel García Aubert 2020-04-27 10:58:37 +02:00
parent 6e4c8a6639
commit c31e3d6e3f

View File

@ -25,7 +25,7 @@ function getEventData (req, res) {
const eventGroupId = normalizedField(req.get('Carto-Event-Group-Id'));
if (!event || !eventSource) {
return [undefined, undefined];
return { event: undefined, attributes: undefined };
}
const attributes = {