mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 20:45:00 +02:00
UBERF-9137: Fix Support for suspended installations (#7667)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
object._class,
|
||||
{ _id: object._id },
|
||||
(res) => {
|
||||
relationsA = res[0].$associations ?? {}
|
||||
relationsA = res?.[0]?.$associations ?? {}
|
||||
},
|
||||
{ associations: associationsA.map((a) => [a._id, 1]) }
|
||||
)
|
||||
@@ -60,7 +60,7 @@
|
||||
object._class,
|
||||
{ _id: object._id },
|
||||
(res) => {
|
||||
relationsB = res[0].$associations ?? {}
|
||||
relationsB = res?.[0]?.$associations ?? {}
|
||||
},
|
||||
{ associations: associationsB.map((a) => [a._id, -1]) }
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user