diff --git a/tasks.py b/tasks.py index b0d3ac5..6854184 100644 --- a/tasks.py +++ b/tasks.py @@ -7,7 +7,7 @@ from lnbits.core import db as core_db from lnbits.core.models import Payment -from lnbits.core.services import websocketUpdater +from lnbits.core.services import websocket_updater from lnbits.helpers import get_current_extension_name from lnbits.tasks import register_invoice_listener @@ -65,11 +65,11 @@ 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 websocketUpdater( + await websocket_updater( copilot.id, str(data) + "-" + str(payment.extra.get("comment")) ) - await websocketUpdater(copilot.id, str(data) + "-none") + await websocket_updater(copilot.id, str(data) + "-none") async def mark_webhook_sent(payment: Payment, status: int) -> None: diff --git a/templates/copilot/index.html b/templates/copilot/index.html index 380c290..eabe167 100644 --- a/templates/copilot/index.html +++ b/templates/copilot/index.html @@ -220,15 +220,51 @@