From b89753abd528004fabe217ee048a8a386362f270 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 30 Dec 2019 10:59:11 -0300 Subject: [PATCH] 400->200 on invoice check timeout. --- lnbits/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/__init__.py b/lnbits/__init__.py index ede96fb..2ae6977 100644 --- a/lnbits/__init__.py +++ b/lnbits/__init__.py @@ -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: