From 7bfbb16f4820c4e70f375bdc89e7c12348d3f3ce Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Tue, 20 Apr 2021 17:56:12 +0100 Subject: [PATCH] message bug --- lnbits/extensions/copilot/tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lnbits/extensions/copilot/tasks.py b/lnbits/extensions/copilot/tasks.py index 484b05cfa..2c0cbab28 100644 --- a/lnbits/extensions/copilot/tasks.py +++ b/lnbits/extensions/copilot/tasks.py @@ -70,8 +70,10 @@ async def on_invoice_paid(payment: Payment) -> None: await mark_webhook_sent(payment, -1) if payment.extra.get("comment"): await updater(data, payment.extra.get("comment"), copilot.id) + else: + await updater(data, "none", copilot.id) - await updater(data, "none", copilot.id) + async def mark_webhook_sent(payment: Payment, status: int) -> None: