400->200 on invoice check timeout.
This commit is contained in:
+1
-1
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user