mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-23 14:06:00 +03:00
UBERF-5744: Fix exception on server (#4787)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
bc86044bed
commit
0c8f00d24a
@ -463,6 +463,9 @@ export class LiveQuery implements WithTx, Client {
|
||||
}
|
||||
return toFindResult(this.clone(q.result), q.total) as FindResult<T>
|
||||
}
|
||||
if (current.result instanceof Promise) {
|
||||
current.result = await current.result
|
||||
}
|
||||
return toFindResult(this.clone((current?.result as T[]) ?? []), current.total)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user