feat: return payment status in the websocket response (#3025)
This commit is contained in:
parent
41abe63f18
commit
ebd080192c
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue