400->200 on invoice check timeout.
This commit is contained in:
parent
cedce73f07
commit
b89753abd5
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue