mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-28 18:52:00 +01:00
400->200 on invoice check timeout.
This commit is contained in:
parent
cedce73f07
commit
b89753abd5
@ -352,7 +352,7 @@ def api_checkinvoice(payhash):
|
|||||||
|
|
||||||
r = WALLET.get_invoice_status(payhash)
|
r = WALLET.get_invoice_status(payhash)
|
||||||
if not r.ok or r.json().get("error"):
|
if not r.ok or r.json().get("error"):
|
||||||
return jsonify({"PAID": "FALSE"}), 400
|
return jsonify({"PAID": "FALSE"}), 200
|
||||||
|
|
||||||
data = r.json()
|
data = r.json()
|
||||||
if "preimage" not in data:
|
if "preimage" not in data:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user