fix: fetch incoming payment (#35)

did not work for internal payment
This commit is contained in:
dni ⚡ 2024-09-03 16:35:42 +02:00 committed by GitHub
parent 400b39211d
commit 9ca714d878
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -170,7 +170,7 @@ async def api_ticket_send_ticket(event_id, payment_hash):
status_code=HTTPStatus.NOT_FOUND,
detail="Ticket could not be fetched.",
)
payment = await get_standalone_payment(payment_hash)
payment = await get_standalone_payment(payment_hash, incoming=True)
assert payment
price = (
event.price_per_ticket * 1000