Skip to content

Commit

Permalink
fix(tag-filter): update tag query for case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
rockingrohit9639 committed Dec 12, 2024
1 parent 4ed6307 commit 42745e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/modules/asset/query.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ function addArrayFilter(whereClause: Prisma.Sql, filter: Filter): Prisma.Sql {
switch (filter.operator) {
case "contains": {
// Single tag filtering using the existing join
return Prisma.sql`${whereClause} AND t.name = ${filter.value}`;
return Prisma.sql`${whereClause} AND t.name ILIKE ${`%${filter.value}%`}`;
}
case "containsAll": {
// ALL tags must be present
Expand Down

0 comments on commit 42745e2

Please sign in to comment.