fix: make search case-insensitive
This commit is contained in:
parent
b376af96ea
commit
3d01ce2e72
1 changed files with 3 additions and 3 deletions
|
|
@ -143,9 +143,9 @@ export async function searchEvents(query: string) {
|
|||
.from(eventsTable)
|
||||
.where(
|
||||
or(
|
||||
like(eventsTable.name, `%${query}%`),
|
||||
like(eventsTable.title, `%${query}%`),
|
||||
like(eventsTable.description, `%${query}%`),
|
||||
ilike(eventsTable.name, `%${query}%`),
|
||||
ilike(eventsTable.title, `%${query}%`),
|
||||
ilike(eventsTable.description, `%${query}%`),
|
||||
),
|
||||
)
|
||||
.orderBy(eventsTable.startTime, eventsTable.endTime);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue