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; }