keep citext cast from 8996fd0

This commit is contained in:
keyan 2024-01-03 21:02:04 -06:00
parent 29a8640493
commit 6495ce9454
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ export const muteClause = me =>
const subClause = (sub, num, table, me) => {
return sub
? `${table ? `"${table}".` : ''}"subName" = $${num}`
? `${table ? `"${table}".` : ''}"subName" = $${num}::CITEXT`
: me
? `NOT EXISTS (SELECT 1 FROM "MuteSub" WHERE "MuteSub"."userId" = ${me.id} AND "MuteSub"."subName" = ${table ? `"${table}".` : ''}"subName")`
: ''