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:
Tiago Vasconcelos 2023-06-28 13:25:28 +01:00 committed by GitHub
parent 13658ceda9
commit 1d57e1ae1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 25 deletions

View file

@ -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