mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03: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) {
|
||||
q.result = await q.result
|
||||
}
|
||||
const clone = this.clone(q.result)
|
||||
const result = toFindResult(clone, q.total)
|
||||
q.callbacks.forEach((callback) => callback(result))
|
||||
const result = q.result
|
||||
q.callbacks.forEach((callback) => {
|
||||
callback(toFindResult(this.clone(result), q.total))
|
||||
})
|
||||
}
|
||||
|
||||
private async handleDocAddLookup (q: Query, doc: Doc): Promise<void> {
|
||||
|
Loading…
Reference in New Issue
Block a user