mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix deep groupBy (#9996)
* fix deep _groupBy not turning to _group
* add groupBy to roles user count
* Revert "add groupBy to roles user count"
This reverts commit 16340eef5a.
This commit is contained in:
@@ -194,7 +194,8 @@ function sanitizeDeep(deep: Record<string, any>, accountability?: Accountability
|
||||
const parsedSubQuery = sanitizeQuery({ [key.substring(1)]: value }, accountability);
|
||||
// ...however we want to keep them for the nested structure of deep, otherwise there's no
|
||||
// way of knowing when to keep nesting and when to stop
|
||||
parsedLevel[key] = Object.values(parsedSubQuery)[0];
|
||||
const [parsedKey, parsedValue] = Object.entries(parsedSubQuery)[0];
|
||||
parsedLevel[`_${parsedKey}`] = parsedValue;
|
||||
} else {
|
||||
parse(value, [...path, key]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user