Working on withdraw

This commit is contained in:
benarc 2024-01-22 13:34:48 +00:00
parent d90babebc8
commit 7c0e227fd1
7 changed files with 55 additions and 61 deletions

View file

@ -38,11 +38,10 @@ async def on_invoice_paid(payment: Payment) -> None:
myextension = await get_myextension(myextension_id)
# update something in the db
data_to_update = {
"total": myextension.total + payment.amount
}
await update_myextension(myextension_id=myextension_id, **data_to_update)
# here we could send some data to a websocket on wss://<your-lnbits>/api/v1/ws/<myextension_id>