mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-21 22:11:59 +01:00
Update views_api.py
This commit is contained in:
parent
a40823de43
commit
e768e4b075
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ def api_ticket_create(form_id, sats):
|
|||
|
||||
try:
|
||||
checking_id, payment_request = create_invoice(
|
||||
wallet_id=form.wallet, amount=sats, memo=f"#lnticket {form_id}"
|
||||
wallet_id=form.wallet, amount=int(sats), memo=f"#lnticket {form_id}"
|
||||
)
|
||||
except Exception as e:
|
||||
return jsonify({"message": str(e)}), HTTPStatus.INTERNAL_SERVER_ERROR
|
||||
|
@ -140,4 +140,4 @@ def api_ticket_delete(ticket_id):
|
|||
|
||||
delete_ticket(ticket_id)
|
||||
|
||||
return "", HTTPStatus.NO_CONTENT
|
||||
return "", HTTPStatus.NO_CONTENT
|
||||
|
|
Loading…
Add table
Reference in a new issue