mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-29 04:55:03 +02:00
Fix activity query (#3234)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -236,7 +236,10 @@ export class LiveQuery extends TxProcessor implements Client {
|
||||
q.callbacks.set(callback.callbackId, callback.callback)
|
||||
setTimeout(async () => {
|
||||
if (q !== undefined) {
|
||||
await this.callback(q)
|
||||
if (q.result instanceof Promise) {
|
||||
q.result = await q.result
|
||||
}
|
||||
callback.callback(q.result)
|
||||
}
|
||||
}, 0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user