Fix create ticket endpoint (#7)
* create ticket when creating invoice not on check payment
---------
Co-authored-by: dni ⚡ <office@dnilabs.com>
This commit is contained in:
parent
13658ceda9
commit
1d57e1ae1a
2 changed files with 12 additions and 25 deletions
4
tasks.py
4
tasks.py
|
|
@ -28,9 +28,5 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||
await api_ticket_send_ticket(
|
||||
payment.memo,
|
||||
payment.payment_hash,
|
||||
CreateTicket(
|
||||
name=str(payment.extra.get("name")),
|
||||
email=str(payment.extra.get("email")),
|
||||
),
|
||||
)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue