wrap the where query in parenthesis because we also need to check user_id

This commit is contained in:
Hongbo Wu 2023-12-08 16:49:07 +08:00
parent a068b16cb1
commit 1697f11e75

View file

@ -691,7 +691,7 @@ export const searchLibraryItems = async (
if (query) {
// add where clause from query
queryBuilder
.andWhere(query)
.andWhere(`(${query})`)
.setParameters(paramtersToObject(parameters))
}