mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 04:37:44 +02:00
Merge pull request #327 from hcengineering/fix-duplicate-activity
Fix duplicate activity
This commit is contained in:
@@ -53,7 +53,11 @@ abstract class MongoAdapterBase extends TxProcessor {
|
||||
translated[key] = value
|
||||
}
|
||||
const classes = this.hierarchy.getDescendants(clazz)
|
||||
translated._class = { $in: classes }
|
||||
|
||||
// Only replace if not specified
|
||||
if (translated._class?.$in === undefined) {
|
||||
translated._class = { $in: classes }
|
||||
}
|
||||
// return Object.assign({}, query, { _class: { $in: classes } })
|
||||
return translated
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user