Use consistent view about failed forwards
This commit is contained in:
parent
756e75ed7c
commit
8f092cdc66
|
@ -148,7 +148,8 @@ export async function getInvoiceableWallets (userId, { predecessorId, models })
|
||||||
"InvoiceForward"."walletId"
|
"InvoiceForward"."walletId"
|
||||||
FROM "Retries"
|
FROM "Retries"
|
||||||
JOIN "InvoiceForward" ON "InvoiceForward"."invoiceId" = "Retries"."id"
|
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`
|
ORDER BY "Wallet"."priority" ASC, "Wallet"."id" ASC`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue