Use consistent view about failed forwards

This commit is contained in:
ekzyis 2024-12-11 20:08:53 +01:00
parent 756e75ed7c
commit 8f092cdc66
1 changed files with 2 additions and 1 deletions

View File

@ -148,7 +148,8 @@ export async function getInvoiceableWallets (userId, { predecessorId, models })
"InvoiceForward"."walletId"
FROM "Retries"
JOIN "InvoiceForward" ON "InvoiceForward"."invoiceId" = "Retries"."id"
WHERE "InvoiceForward"."withdrawlId" IS NOT NULL
JOIN "Withdrawl" ON "Withdrawl".id = "InvoiceForward"."withdrawlId"
WHERE "Withdrawl"."status" IS DISTINCT FROM 'CONFIRMED'
)
ORDER BY "Wallet"."priority" ASC, "Wallet"."id" ASC`