fix: return empty array for unknown event key

This commit is contained in:
Richard Ramos 2020-03-06 14:20:16 -04:00
parent 0106e406b3
commit 4ffe324a80
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class Database {
getEventsFor(eventKey) {
let children = this.db.getCollection(eventKey);
return children.find();
return children ? children.find() : [];
}
eventExists(eventKey, eventId) {