Fix searching user on BBReference

This commit is contained in:
Adria Navarro 2025-03-04 11:54:42 +01:00
parent bc125b3c22
commit 7f168852f0
1 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,8 @@ export function isSupportedUserSearch(
{ op: BasicOperator.EQUAL, key: "_id" },
{ op: ArrayOperator.ONE_OF, key: "_id" },
]
for (const [key, operation] of Object.entries(query)) {
const { allOr, onEmptyFilter, ...filters } = query
for (const [key, operation] of Object.entries(filters)) {
if (typeof operation !== "object") {
return false
}