From 3a48a6ca3915ca8903c612adbf642dc43decf5fd Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Thu, 24 Jun 2021 00:51:26 +0100 Subject: [PATCH] payment bug --- lnbits/extensions/copilot/tasks.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lnbits/extensions/copilot/tasks.py b/lnbits/extensions/copilot/tasks.py index 7dee007a..e54c8762 100644 --- a/lnbits/extensions/copilot/tasks.py +++ b/lnbits/extensions/copilot/tasks.py @@ -71,10 +71,9 @@ async def on_invoice_paid(payment: Payment) -> None: except (httpx.ConnectError, httpx.RequestError): await mark_webhook_sent(payment, -1) if payment.extra.get("comment"): - await updater(data, payment.extra.get("comment"), copilot.id) + await updater(copilot.id, data, payment.extra.get("comment")) else: - await updater(data, "none", copilot.id) - + await updater(copilot.id, data, "none") async def mark_webhook_sent(payment: Payment, status: int) -> None: payment.extra["wh_status"] = status