remove zap/downzap subname case sensitivity
This commit is contained in:
parent
5f2c8bf380
commit
9df5a52bd3
@ -62,7 +62,7 @@ export async function onPaid ({ invoice, actId }, { tx }) {
|
||||
// denormalize downzaps
|
||||
await tx.$executeRaw`
|
||||
WITH territory AS (
|
||||
SELECT COALESCE(r."subName", i."subName", 'meta')::TEXT as "subName"
|
||||
SELECT COALESCE(r."subName", i."subName", 'meta')::CITEXT as "subName"
|
||||
FROM "Item" i
|
||||
LEFT JOIN "Item" r ON r.id = i."rootId"
|
||||
WHERE i.id = ${itemAct.itemId}::INTEGER
|
||||
|
@ -151,7 +151,7 @@ export async function onPaid ({ invoice, actIds }, { tx }) {
|
||||
// NOTE: for the rows that might be updated by a concurrent zap, we use UPDATE for implicit locking
|
||||
await tx.$queryRaw`
|
||||
WITH territory AS (
|
||||
SELECT COALESCE(r."subName", i."subName", 'meta')::TEXT as "subName"
|
||||
SELECT COALESCE(r."subName", i."subName", 'meta')::CITEXT as "subName"
|
||||
FROM "Item" i
|
||||
LEFT JOIN "Item" r ON r.id = i."rootId"
|
||||
WHERE i.id = ${itemAct.itemId}::INTEGER
|
||||
|
Loading…
x
Reference in New Issue
Block a user