mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-28 19:08:01 +00:00
Move "classesIds" under condition (#2630)
Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@xored.com>
This commit is contained in:
parent
67a2053d52
commit
961de0ddc0
@ -126,10 +126,10 @@ abstract class MongoAdapterBase implements DbAdapter {
|
||||
translated._class = { $in: classes }
|
||||
}
|
||||
} else if (typeof translated._class === 'object') {
|
||||
const classesIds = new Set(classes)
|
||||
let descendants: Ref<Class<Doc>>[] = classes
|
||||
|
||||
if (Array.isArray(translated._class.$in)) {
|
||||
const classesIds = new Set(classes)
|
||||
descendants = translated._class.$in.filter((c: Ref<Class<Doc>>) => classesIds.has(c))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user