mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-26 02:10:07 +00:00
UBER-393 Showing project from different workspace (#3374)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
bdbf2c650d
commit
057feb89d3
@ -74,10 +74,11 @@
|
|||||||
}
|
}
|
||||||
objectsPromise = client.findAll(
|
objectsPromise = client.findAll(
|
||||||
_class,
|
_class,
|
||||||
{ ...resultQuery, ...(space ? { space } : {}) },
|
{ ...resultQuery, ...(space ? { space } : { '$lookup.space.archived': false }) },
|
||||||
{
|
{
|
||||||
sort: { [filter.key.key]: SortingOrder.Ascending },
|
sort: { [filter.key.key]: SortingOrder.Ascending },
|
||||||
projection: { [prefix + filter.key.key]: 1, space: 1 }
|
projection: { [prefix + filter.key.key]: 1, space: 1 },
|
||||||
|
...(space ? {} : { lookup: { space: core.class.Space } })
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
const res = await objectsPromise
|
const res = await objectsPromise
|
||||||
|
Loading…
Reference in New Issue
Block a user