feat: return payment status in the websocket response (#3025)

This commit is contained in:
Vlad Stan
2025-03-10 12:48:40 +02:00
committed by GitHub
parent 41abe63f18
commit ebd080192c
+2 -1
View File
@@ -261,7 +261,8 @@ async def send_ws_payment_notification(wallet: Wallet, payment: Payment):
await websocket_manager.send_data(payment_notification, wallet.adminkey)
await websocket_manager.send_data(
json.dumps({"pending": payment.pending}), payment.payment_hash
json.dumps({"pending": payment.pending, "status": payment.status}),
payment.payment_hash,
)