Fix bug with not forwarded add events
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Fabian Stamm 2020-08-14 23:20:18 +02:00
parent 5cbc445597
commit bb291c207d
1 changed files with 3 additions and 0 deletions

View File

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