mirror of
https://github.com/embarklabs/subspace.git
synced 2025-02-27 05:40:45 +00:00
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…
x
Reference in New Issue
Block a user