Skip to content

Commit 3028bda

Browse files
authoredApr 12, 2024··
chore: rename websocketUpdater (#78)
* chore: rename `websocketUpdater` lnbits/lnbits#2377
1 parent 66a28c0 commit 3028bda

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"short_description": "A shareable PoS terminal!",
44
"tile": "/tpos/static/image/tpos.png",
55
"contributors": ["talvasconcelos", "arcbtc", "leesalminen"],
6-
"min_lnbits_version": "0.11.2"
6+
"min_lnbits_version": "0.12.6"
77
}

‎lnurl.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from fastapi import Request
33
from typing import Optional
44
from starlette.exceptions import HTTPException
5-
from lnbits.core.services import websocketUpdater, pay_invoice
5+
from lnbits.core.services import websocket_updater, pay_invoice
66

77
from . import tpos_ext
88
from .crud import get_tpos, get_lnurlcharge, update_lnurlcharge, update_tpos_withdraw
@@ -106,7 +106,7 @@ async def lnurl_callback(
106106
max_sat=int(lnurlcharge.amount),
107107
extra={"tag": "TPoSWithdraw", "tpos_id": lnurlcharge.tpos_id},
108108
)
109-
await websocketUpdater(k1, "paid")
109+
await websocket_updater(k1, "paid")
110110
except Exception as e:
111111
raise HTTPException(
112112
status_code=HTTPStatus.BAD_REQUEST, detail=f"withdraw not working. {str(e)}"

‎tasks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from loguru import logger
44

55
from lnbits.core.models import Payment
6-
from lnbits.core.services import create_invoice, pay_invoice, websocketUpdater
6+
from lnbits.core.services import create_invoice, pay_invoice, websocket_updater
77
from lnbits.helpers import get_current_extension_name
88
from lnbits.tasks import register_invoice_listener
99

@@ -39,7 +39,7 @@ async def on_invoice_paid(payment: Payment) -> None:
3939
tpos = await get_tpos(tpos_id)
4040
assert tpos
4141

42-
await websocketUpdater(tpos_id, str(strippedPayment))
42+
await websocket_updater(tpos_id, str(strippedPayment))
4343

4444
if not tipAmount:
4545
# no tip amount

0 commit comments

Comments
 (0)
Please sign in to comment.