Consistent interface when returning no event for eventa data in metrics
This commit is contained in:
parent
6e4c8a6639
commit
c31e3d6e3f
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user