From bb291c207d85cac85a4da6669e13296fe9341e49 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Fri, 14 Aug 2020 23:20:18 +0200 Subject: [PATCH] Fix bug with not forwarded add events --- src/database/query.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/database/query.ts b/src/database/query.ts index 597ae77..ab4c1f8 100644 --- a/src/database/query.ts +++ b/src/database/query.ts @@ -126,6 +126,8 @@ export abstract class Query { sender: this.session.id, }; + Logging.debug("Sending change:", change); + this.changes.push(change); } @@ -529,6 +531,7 @@ export class CollectionQuery extends Query { options: this.query.options, }); await q.run(collection, this._addId, batch, collectionKey); + this.changes = q.changes; return this._addId; }