Pull Request branch dev-clone to main #1
|
|
@ -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
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user