fix: remove double dict
This commit is contained in:
parent
f3c884111d
commit
7b0f9f61fc
1 changed files with 6 additions and 8 deletions
|
|
@ -164,13 +164,11 @@ async def api_lnurl_callback(
|
||||||
r: httpx.Response = await client.post(link.webhook_url, **kwargs)
|
r: httpx.Response = await client.post(link.webhook_url, **kwargs)
|
||||||
await update_payment_extra(
|
await update_payment_extra(
|
||||||
payment_hash,
|
payment_hash,
|
||||||
dict(
|
{
|
||||||
{
|
"wh_success": r.is_success,
|
||||||
"wh_success": r.is_success,
|
"wh_message": r.reason_phrase,
|
||||||
"wh_message": r.reason_phrase,
|
"wh_response": r.text,
|
||||||
"wh_response": r.text,
|
},
|
||||||
}
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
# webhook fails shouldn't cause the lnurlw to fail since invoice is already paid
|
# webhook fails shouldn't cause the lnurlw to fail since invoice is already paid
|
||||||
|
|
@ -179,7 +177,7 @@ async def api_lnurl_callback(
|
||||||
)
|
)
|
||||||
await update_payment_extra(
|
await update_payment_extra(
|
||||||
payment_hash,
|
payment_hash,
|
||||||
dict({"wh_success": False, "wh_message": str(exc)}),
|
{"wh_success": False, "wh_message": str(exc)},
|
||||||
)
|
)
|
||||||
|
|
||||||
return {"status": "OK"}
|
return {"status": "OK"}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue