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