feat(BE): refactor search queries to be case insensitive across all modules

This commit is contained in:
aguhh18
2026-01-11 21:09:15 +07:00
parent d3c7d65bf5
commit 28c6aaefac
23 changed files with 31 additions and 28 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("LOWER(flags.name) LIKE LOWER(?)", like)
applied = true
continue
}
db = db.Or("flags.name LIKE ?", like)
db = db.Or("LOWER(flags.name) LIKE LOWER(?)", like)
}
if visibleStatus != nil {