mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-21 07:46:24 +00:00
Fix Live query (#2017)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
3a5c431521
commit
b11eeb4eb8
@ -563,9 +563,10 @@ export class LiveQuery extends TxProcessor implements Client {
|
|||||||
if (q.result instanceof Promise) {
|
if (q.result instanceof Promise) {
|
||||||
q.result = await q.result
|
q.result = await q.result
|
||||||
}
|
}
|
||||||
const clone = this.clone(q.result)
|
const result = q.result
|
||||||
const result = toFindResult(clone, q.total)
|
q.callbacks.forEach((callback) => {
|
||||||
q.callbacks.forEach((callback) => callback(result))
|
callback(toFindResult(this.clone(result), q.total))
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
private async handleDocAddLookup (q: Query, doc: Doc): Promise<void> {
|
private async handleDocAddLookup (q: Query, doc: Doc): Promise<void> {
|
||||||
|
Loading…
Reference in New Issue
Block a user