mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 04:25:03 +02:00
UBERF-6180: Fix account issues (#5063)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -206,7 +206,12 @@ export class LiveQuery implements WithTx, Client {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (options?.limit === 1 && options.total !== true) {
|
||||
if (
|
||||
options?.limit === 1 &&
|
||||
options.total !== true &&
|
||||
options?.sort === undefined &&
|
||||
options?.projection === undefined
|
||||
) {
|
||||
const docs = this.documentRefs.get(classKey)
|
||||
if (docs !== undefined) {
|
||||
const _docs = Array.from(docs.values()).map((it) => it.doc)
|
||||
|
||||
Reference in New Issue
Block a user