Working on withdraw
This commit is contained in:
parent
d90babebc8
commit
7c0e227fd1
7 changed files with 55 additions and 61 deletions
3
tasks.py
3
tasks.py
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue