400->200 on invoice check timeout.

This commit is contained in:
fiatjaf 2019-12-30 10:59:11 -03:00
parent cedce73f07
commit b89753abd5

View File

@ -352,7 +352,7 @@ def api_checkinvoice(payhash):
r = WALLET.get_invoice_status(payhash)
if not r.ok or r.json().get("error"):
return jsonify({"PAID": "FALSE"}), 400
return jsonify({"PAID": "FALSE"}), 200
data = r.json()
if "preimage" not in data: