fix: return empty array for unknown event key
This commit is contained in:
parent
0106e406b3
commit
4ffe324a80
|
@ -78,7 +78,7 @@ class Database {
|
|||
|
||||
getEventsFor(eventKey) {
|
||||
let children = this.db.getCollection(eventKey);
|
||||
return children.find();
|
||||
return children ? children.find() : [];
|
||||
}
|
||||
|
||||
eventExists(eventKey, eventId) {
|
||||
|
|
Loading…
Reference in New Issue