diff --git a/packages/core/src/database/database.js b/packages/core/src/database/database.js index ca8a2bd..5a9a474 100644 --- a/packages/core/src/database/database.js +++ b/packages/core/src/database/database.js @@ -78,7 +78,7 @@ class Database { getEventsFor(eventKey) { let children = this.db.getCollection(eventKey); - return children.find(); + return children ? children.find() : []; } eventExists(eventKey, eventId) {