From f2669214de4e67dd4027e6642ba8b907cca67f79 Mon Sep 17 00:00:00 2001 From: Francis <11526661+francismars@users.noreply.github.com> Date: Wed, 26 Jun 2024 13:57:18 +0100 Subject: [PATCH] Update tasks.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: dni ⚡ --- tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index 342d41c..3f4b283 100644 --- a/tasks.py +++ b/tasks.py @@ -72,8 +72,8 @@ async def send_webhook(payment: Payment, pay_link: PayLink): "comment": payment.extra.get("comment"), "webhook_data": payment.extra.get("webhook_data") or "", "lnurlp": pay_link.id, - "body": json.loads(pay_link.webhook_body), - "zap_receipt": pay_link.zap_receipt + "zap_receipt": pay_link.zap_receipt, + "body": json.loads(pay_link.webhook_body) if pay_link.webhook_body else "", },