[FIX/BE] adjust case sensitive search

This commit is contained in:
ragilap
2026-01-11 23:47:28 +07:00
parent d3c7d65bf5
commit 67f5165bfb
24 changed files with 26 additions and 26 deletions
@@ -399,11 +399,11 @@ func (r *ProductWarehouseRepositoryImpl) ListProductIDsByFlagPrefixes(ctx contex
}
like := prefix + "%"
if !applied {
db = db.Where("flags.name LIKE ?", like)
db = db.Where("flags.name ILIKE ?", like)
applied = true
continue
}
db = db.Or("flags.name LIKE ?", like)
db = db.Or("flags.name ILIKE ?", like)
}
if visibleStatus != nil {