mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2026-03-25 17:51:23 -04:00
feat: Improve search functionality by using case-insensitive search for adventure location and name
This commit is contained in:
@@ -84,7 +84,7 @@ export const load: PageServerLoad = async ({ url, locals }) => {
|
||||
.from(adventureTable)
|
||||
.where(
|
||||
and(
|
||||
ilike(adventureTable.location, value),
|
||||
ilike(adventureTable.location, `%${value}%`),
|
||||
eq(adventureTable.userId, locals.user.id)
|
||||
)
|
||||
)
|
||||
@@ -101,7 +101,7 @@ export const load: PageServerLoad = async ({ url, locals }) => {
|
||||
.from(adventureTable)
|
||||
.where(
|
||||
and(
|
||||
ilike(adventureTable.name, value),
|
||||
ilike(adventureTable.name, `%${value}%`),
|
||||
eq(adventureTable.userId, locals.user.id)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user