Fix bug with not forwarded add events
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabian Stamm 2020-08-14 23:20:18 +02:00
parent 5cbc445597
commit bb291c207d

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