16 lines
620 B
Diff
16 lines
620 B
Diff
diff --git a/dist/db.js b/dist/db.js
|
|
index 09fcba1b0df49971de59b5d9f11171e5ea88aee7..9c4d3060894285218d2d1f961930b5dad52d7bc5 100644
|
|
--- a/dist/db.js
|
|
+++ b/dist/db.js
|
|
@@ -307,9 +307,7 @@ export class DB {
|
|
// TODO call the listeners in the entity store
|
|
// Trigger subscription updates
|
|
await this.ivm.bufferChanges(changes);
|
|
- for (const listener of this.onCommitListeners) {
|
|
- listener(changes);
|
|
- }
|
|
+ await Promise.all([...this.onCommitListeners].map((listener) => listener(changes)));
|
|
return output;
|
|
}
|
|
async applyChanges(changes, options) {
|