keep citext cast from 8996fd0
This commit is contained in:
parent
29a8640493
commit
6495ce9454
|
@ -194,7 +194,7 @@ export const muteClause = me =>
|
||||||
|
|
||||||
const subClause = (sub, num, table, me) => {
|
const subClause = (sub, num, table, me) => {
|
||||||
return sub
|
return sub
|
||||||
? `${table ? `"${table}".` : ''}"subName" = $${num}`
|
? `${table ? `"${table}".` : ''}"subName" = $${num}::CITEXT`
|
||||||
: me
|
: me
|
||||||
? `NOT EXISTS (SELECT 1 FROM "MuteSub" WHERE "MuteSub"."userId" = ${me.id} AND "MuteSub"."subName" = ${table ? `"${table}".` : ''}"subName")`
|
? `NOT EXISTS (SELECT 1 FROM "MuteSub" WHERE "MuteSub"."userId" = ${me.id} AND "MuteSub"."subName" = ${table ? `"${table}".` : ''}"subName")`
|
||||||
: ''
|
: ''
|
||||||
|
|
Loading…
Reference in New Issue