fix accidentally reporting deleted withdrawals

This commit is contained in:
keyan 2023-12-08 19:21:46 -06:00
parent e08fca15b6
commit 0d5ef11b1e
1 changed files with 1 additions and 0 deletions

View File

@ -131,6 +131,7 @@ export default {
COALESCE("msatsPaid", "msatsPaying") as msats, COALESCE("msatsPaid", "msatsPaying") as msats,
'withdrawal' as type, 'withdrawal' as type,
jsonb_build_object( jsonb_build_object(
'bolt11', bolt11,
'status', COALESCE(status::text, 'PENDING'), 'status', COALESCE(status::text, 'PENDING'),
'msatsFee', COALESCE("msatsFeePaid", "msatsFeePaying")) as other 'msatsFee', COALESCE("msatsFeePaid", "msatsFeePaying")) as other
FROM "Withdrawl" FROM "Withdrawl"