mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-23 11:44:19 +01:00
fix getting the PR (#732)
This commit is contained in:
@@ -88,7 +88,8 @@ class LNbitsWallet(LightningBackend):
|
||||
if data.get("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(
|
||||
ok=True,
|
||||
|
||||
Reference in New Issue
Block a user