Skip to content

Commit 88b7fa1

Browse files
fix: properly combine multiple case insensitive filters
1 parent 698d26a commit 88b7fa1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/convert-filter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const convertFilter = (filter) => {
1919
}
2020
return {
2121
[Op.and]: [
22+
...(memo[Op.and] || []),
2223
where(
2324
fn('LOWER', col(`${property.sequelizePath.Model.name}.${property.name()}`)),
2425
Op.like,

0 commit comments

Comments
 (0)