fix: update the rest of update_payment_extra calls

This commit is contained in:
Vlad Stan
2022-12-22 11:28:12 +02:00
parent b56d08a70e
commit a434731729
3 changed files with 10 additions and 7 deletions
+4 -3
View File
@@ -163,7 +163,7 @@ async def api_lnurl_callback(
r: httpx.Response = await client.post(link.webhook_url, **kwargs)
await update_payment_extra(
hash=payment_hash,
payment_hash=payment_hash,
extra={
"wh_success": r.is_success,
"wh_message": r.reason_phrase,
@@ -177,8 +177,9 @@ async def api_lnurl_callback(
"Caught exception when dispatching webhook url: " + str(exc)
)
await update_payment_extra(
payment_hash,
{"wh_success": False, "wh_message": str(exc)},
payment_hash=payment_hash,
extra={"wh_success": False, "wh_message": str(exc)},
outgoing=True,
)
return {"status": "OK"}