fix: convert BigDecimal object to int (postgres only) (#2918)

This commit is contained in:
Vlad Stan 2025-01-30 10:09:13 +02:00 committed by GitHub
parent c23eae9e08
commit 7af9da4a58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,7 @@ async def get_balance_delta() -> BalanceDelta:
status = await funding_source.status()
lnbits_balance = await get_total_balance()
return BalanceDelta(
lnbits_balance_sats=lnbits_balance // 1000,
lnbits_balance_sats=int(lnbits_balance) // 1000,
node_balance_sats=status.balance_msat // 1000,
)