fixed updating paid tickets on index.html

This commit is contained in:
Tiago vasconcelos
2021-06-16 11:23:58 +01:00
parent bb1253f30e
commit b490d9f260
3 changed files with 36 additions and 12 deletions
+4 -2
View File
@@ -25,10 +25,12 @@ async def on_invoice_paid(payment: Payment) -> None:
# not a lnticket invoice
return
ticket = await get_ticket(payment.payment_hash)
ticket = await get_ticket(payment.checking_id)
if not ticket:
print("this should never happen", payment)
return
await payment.set_pending(False)
await set_ticket_paid(payment_hash=payment.payment_hash)
await set_ticket_paid(payment.payment_hash)
_ticket = await get_ticket(payment.checking_id)
print('ticket', _ticket)