mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03: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(
|
||||
_class,
|
||||
{ ...resultQuery, ...(space ? { space } : {}) },
|
||||
{ ...resultQuery, ...(space ? { space } : { '$lookup.space.archived': false }) },
|
||||
{
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user