Skip to content

Commit

Permalink
chore: rename websocketUpdater (#99)
Browse files Browse the repository at this point in the history
* chore: rename `websocketUpdater`
lnbits/lnbits#2377
  • Loading branch information
dni authored Apr 12, 2024
1 parent bdf0b77 commit 49b4ae7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"short_description": "Nostr Webshop/market on LNbits",
"tile": "/nostrmarket/static/images/bitcoin-shop.png",
"contributors": [],
"min_lnbits_version": "0.12.0"
"min_lnbits_version": "0.12.6"
}
10 changes: 5 additions & 5 deletions services.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from loguru import logger

from lnbits.bolt11 import decode
from lnbits.core.services import websocketUpdater, create_invoice, get_wallet
from lnbits.core.services import websocket_updater, create_invoice, get_wallet

from . import nostr_client
from .crud import (
Expand Down Expand Up @@ -269,7 +269,7 @@ async def send_dm(

await nostr_client.publish_nostr_event(dm_event)

await websocketUpdater(
await websocket_updater(
merchant.id,
json.dumps(
{
Expand Down Expand Up @@ -508,7 +508,7 @@ async def _persist_dm(
)
new_dm = await create_direct_message(merchant_id, dm)

await websocketUpdater(
await websocket_updater(
merchant_id,
json.dumps(
{
Expand All @@ -535,7 +535,7 @@ async def reply_to_structured_dm(
await create_direct_message(merchant.id, dm)
await nostr_client.publish_nostr_event(dm_event)

await websocketUpdater(
await websocket_updater(
merchant.id,
json.dumps(
{"type": f"dm:{dm_type}", "customerPubkey": dm.public_key, "dm": dm.dict()}
Expand Down Expand Up @@ -607,7 +607,7 @@ async def subscribe_to_all_merchants():
last_dm_time = await get_last_direct_messages_created_at()
last_stall_time = await get_last_stall_update_time()
last_prod_time = await get_last_product_update_time()

await nostr_client.subscribe_merchants(public_keys, last_dm_time, last_stall_time, last_prod_time, 0)


Expand Down
4 changes: 2 additions & 2 deletions views_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from fastapi.exceptions import HTTPException
from loguru import logger

from lnbits.core.services import websocketUpdater
from lnbits.core.services import websocket_updater
from lnbits.decorators import (
WalletTypeInfo,
check_admin,
Expand Down Expand Up @@ -836,7 +836,7 @@ async def api_update_order_status(
await create_direct_message(merchant.id, dm)

await nostr_client.publish_nostr_event(dm_event)
await websocketUpdater(
await websocket_updater(
merchant.id,
json.dumps(
{
Expand Down

0 comments on commit 49b4ae7

Please sign in to comment.