Removed payments websocket example
To be prob added back at a later date
This commit is contained in:
parent
dce4da96b7
commit
3cea3a0ba8
1 changed files with 0 additions and 2 deletions
|
|
@ -10,7 +10,6 @@ from lnbits.tasks import SseListenersDict, register_invoice_listener
|
||||||
from . import db
|
from . import db
|
||||||
from .crud import get_balance_notify
|
from .crud import get_balance_notify
|
||||||
from .models import Payment
|
from .models import Payment
|
||||||
from .services import websocketUpdater
|
|
||||||
|
|
||||||
api_invoice_listeners: Dict[str, asyncio.Queue] = SseListenersDict(
|
api_invoice_listeners: Dict[str, asyncio.Queue] = SseListenersDict(
|
||||||
"api_invoice_listeners"
|
"api_invoice_listeners"
|
||||||
|
|
@ -39,7 +38,6 @@ async def wait_for_paid_invoices(invoice_paid_queue: asyncio.Queue):
|
||||||
logger.trace("received invoice paid event")
|
logger.trace("received invoice paid event")
|
||||||
# send information to sse channel
|
# send information to sse channel
|
||||||
await dispatch_api_invoice_listeners(payment)
|
await dispatch_api_invoice_listeners(payment)
|
||||||
await websocketUpdater(payment.wallet_id, payment)
|
|
||||||
|
|
||||||
# dispatch webhook
|
# dispatch webhook
|
||||||
if payment.webhook and not payment.webhook_status:
|
if payment.webhook and not payment.webhook_status:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue