From 6495ce94544bb99162577b03dd668025fc7faa35 Mon Sep 17 00:00:00 2001 From: keyan Date: Wed, 3 Jan 2024 21:02:04 -0600 Subject: [PATCH] keep citext cast from 8996fd0 --- api/resolvers/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/resolvers/item.js b/api/resolvers/item.js index 279d2c26..57d70c0d 100644 --- a/api/resolvers/item.js +++ b/api/resolvers/item.js @@ -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")` : ''