mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-09 20:12:34 +02:00
Update views_api.py
This commit is contained in:
@@ -88,7 +88,7 @@ def api_ticket_create(form_id, sats):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
checking_id, payment_request = create_invoice(
|
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:
|
except Exception as e:
|
||||||
return jsonify({"message": str(e)}), HTTPStatus.INTERNAL_SERVER_ERROR
|
return jsonify({"message": str(e)}), HTTPStatus.INTERNAL_SERVER_ERROR
|
||||||
|
Reference in New Issue
Block a user