Merge pull request #1713 from stackernews/shared-failed-forwards-view

This commit is contained in:
Keyan 2024-12-11 14:42:31 -06:00 committed by GitHub
commit 3fe5f4b435
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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`