Pull Request branch dev-clone to main #1

Merged
gitea merged 429 commits from dev-clone into main 2024-12-23 09:31:34 +00:00
Showing only changes of commit 64816b217a - Show all commits

View File

@ -51,7 +51,7 @@ const assessmentRequestRoute = new Hono<HonoEnv>()
and( and(
eq(users.id, userId), eq(users.id, userId),
q && q.trim() !== "" q && q.trim() !== ""
? ilike(sql`${assessments.status}::text`, `%${q}%`) // Cast status to text for ilike ?sql`CAST(${assessments.status} AS TEXT) ILIKE ${'%' + q + '%'}`
: undefined : undefined
) )
) )
@ -76,7 +76,8 @@ const assessmentRequestRoute = new Hono<HonoEnv>()
and( and(
eq(users.id, userId), eq(users.id, userId),
q && q.trim() !== "" q && q.trim() !== ""
? ilike(sql`${assessments.status}::text`, `%${q}%`) // Cast status to text for ilike // ? ilike(sql`${assessments.status}::text`, `%${q}%`) // Cast status to text for ilike
?sql`CAST(${assessments.status} AS TEXT) ILIKE ${'%' + q + '%'}`
: undefined : undefined
) )
) )