mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
1664 fix (#1669)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
parent
a58d0d9374
commit
11fadf935d
@ -57,12 +57,12 @@ export abstract class MemDb extends TxProcessor {
|
||||
const result: T[] = []
|
||||
if (typeof query._id === 'string') {
|
||||
const obj = this.objectById.get(query._id) as T
|
||||
if (obj !== undefined) result.push(obj)
|
||||
if (obj !== undefined && this.hierarchy.isDerived(obj._class, _class)) result.push(obj)
|
||||
} else if (query._id?.$in !== undefined) {
|
||||
const ids = query._id.$in
|
||||
for (const id of ids) {
|
||||
const obj = this.objectById.get(id) as T
|
||||
if (obj !== undefined) result.push(obj)
|
||||
if (obj !== undefined && this.hierarchy.isDerived(obj._class, _class)) result.push(obj)
|
||||
}
|
||||
}
|
||||
return result
|
||||
|
@ -56,7 +56,7 @@
|
||||
{ attachTo },
|
||||
{
|
||||
lookup: {
|
||||
descriptor: core.class.Class
|
||||
descriptor: view.class.ViewletDescriptor
|
||||
}
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user