Arc
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
lnbits/extensions/lnticket/views_api.py
|
@ -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 |
|
|