PR comments.

This commit is contained in:
mike12345567 2024-08-21 11:05:48 +01:00
parent 90da9f89c6
commit e6c5a7ecd7
1 changed files with 2 additions and 3 deletions

View File

@ -57,10 +57,9 @@ export async function searchView(
} }
}) })
}) })
} else { } else
const operator = query.allOr ? "$or" : "$and"
query = { query = {
[operator]: { $and: {
conditions: [query, body.query], conditions: [query, body.query],
}, },
} }