fix getting the PR (#732)

This commit is contained in:
iwarp
2025-04-20 11:21:52 +02:00
committed by GitHub
parent e1220d2329
commit 8d94d1097b

View File

@@ -88,7 +88,8 @@ class LNbitsWallet(LightningBackend):
if data.get("detail"): if data.get("detail"):
return InvoiceResponse(ok=False, error_message=data["detail"]) return InvoiceResponse(ok=False, error_message=data["detail"])
checking_id, payment_request = data["checking_id"], data["payment_request"] checking_id = data["checking_id"]
payment_request = data.get("bolt11") or data.get("payment_request")
return InvoiceResponse( return InvoiceResponse(
ok=True, ok=True,