Skip to content

Commit 9df5a52

Browse files
committed
remove zap/downzap subname case sensitivity
1 parent 5f2c8bf commit 9df5a52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/paidAction/downZap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export async function onPaid ({ invoice, actId }, { tx }) {
6262
// denormalize downzaps
6363
await tx.$executeRaw`
6464
WITH territory AS (
65-
SELECT COALESCE(r."subName", i."subName", 'meta')::TEXT as "subName"
65+
SELECT COALESCE(r."subName", i."subName", 'meta')::CITEXT as "subName"
6666
FROM "Item" i
6767
LEFT JOIN "Item" r ON r.id = i."rootId"
6868
WHERE i.id = ${itemAct.itemId}::INTEGER

api/paidAction/zap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export async function onPaid ({ invoice, actIds }, { tx }) {
151151
// NOTE: for the rows that might be updated by a concurrent zap, we use UPDATE for implicit locking
152152
await tx.$queryRaw`
153153
WITH territory AS (
154-
SELECT COALESCE(r."subName", i."subName", 'meta')::TEXT as "subName"
154+
SELECT COALESCE(r."subName", i."subName", 'meta')::CITEXT as "subName"
155155
FROM "Item" i
156156
LEFT JOIN "Item" r ON r.id = i."rootId"
157157
WHERE i.id = ${itemAct.itemId}::INTEGER

0 commit comments

Comments
 (0)