mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-17 13:54:11 +00:00
UBER-839: request the category if it's not in lookup (#3679)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
09bef1ec9d
commit
709164cd82
@ -53,7 +53,7 @@
|
||||
if (status.$lookup?.category) {
|
||||
category = status.$lookup.category
|
||||
}
|
||||
if (category === undefined) {
|
||||
if (category === undefined || category._id !== value.category) {
|
||||
category = await client.findOne(core.class.StatusCategory, { _id: value.category })
|
||||
}
|
||||
if (value.category !== undefined && dynamicFillCategories.includes(value.category)) {
|
||||
|
Loading…
Reference in New Issue
Block a user