chore: rename websocketUpdater (#99)
* chore: rename `websocketUpdater` https://github.com/lnbits/lnbits/pull/2377
This commit is contained in:
parent
91e42ee686
commit
2ce0c98a76
3 changed files with 8 additions and 8 deletions
|
|
@ -3,5 +3,5 @@
|
||||||
"short_description": "Nostr Webshop/market on LNbits",
|
"short_description": "Nostr Webshop/market on LNbits",
|
||||||
"tile": "/nostrmarket/static/images/bitcoin-shop.png",
|
"tile": "/nostrmarket/static/images/bitcoin-shop.png",
|
||||||
"contributors": [],
|
"contributors": [],
|
||||||
"min_lnbits_version": "0.12.0"
|
"min_lnbits_version": "0.12.6"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ from typing import List, Optional, Tuple
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
from lnbits.bolt11 import decode
|
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 . import nostr_client
|
||||||
from .crud import (
|
from .crud import (
|
||||||
|
|
@ -269,7 +269,7 @@ async def send_dm(
|
||||||
|
|
||||||
await nostr_client.publish_nostr_event(dm_event)
|
await nostr_client.publish_nostr_event(dm_event)
|
||||||
|
|
||||||
await websocketUpdater(
|
await websocket_updater(
|
||||||
merchant.id,
|
merchant.id,
|
||||||
json.dumps(
|
json.dumps(
|
||||||
{
|
{
|
||||||
|
|
@ -508,7 +508,7 @@ async def _persist_dm(
|
||||||
)
|
)
|
||||||
new_dm = await create_direct_message(merchant_id, dm)
|
new_dm = await create_direct_message(merchant_id, dm)
|
||||||
|
|
||||||
await websocketUpdater(
|
await websocket_updater(
|
||||||
merchant_id,
|
merchant_id,
|
||||||
json.dumps(
|
json.dumps(
|
||||||
{
|
{
|
||||||
|
|
@ -535,7 +535,7 @@ async def reply_to_structured_dm(
|
||||||
await create_direct_message(merchant.id, dm)
|
await create_direct_message(merchant.id, dm)
|
||||||
await nostr_client.publish_nostr_event(dm_event)
|
await nostr_client.publish_nostr_event(dm_event)
|
||||||
|
|
||||||
await websocketUpdater(
|
await websocket_updater(
|
||||||
merchant.id,
|
merchant.id,
|
||||||
json.dumps(
|
json.dumps(
|
||||||
{"type": f"dm:{dm_type}", "customerPubkey": dm.public_key, "dm": dm.dict()}
|
{"type": f"dm:{dm_type}", "customerPubkey": dm.public_key, "dm": dm.dict()}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ from fastapi import Depends
|
||||||
from fastapi.exceptions import HTTPException
|
from fastapi.exceptions import HTTPException
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
from lnbits.core.services import websocketUpdater
|
from lnbits.core.services import websocket_updater
|
||||||
from lnbits.decorators import (
|
from lnbits.decorators import (
|
||||||
WalletTypeInfo,
|
WalletTypeInfo,
|
||||||
check_admin,
|
check_admin,
|
||||||
|
|
@ -836,7 +836,7 @@ async def api_update_order_status(
|
||||||
await create_direct_message(merchant.id, dm)
|
await create_direct_message(merchant.id, dm)
|
||||||
|
|
||||||
await nostr_client.publish_nostr_event(dm_event)
|
await nostr_client.publish_nostr_event(dm_event)
|
||||||
await websocketUpdater(
|
await websocket_updater(
|
||||||
merchant.id,
|
merchant.id,
|
||||||
json.dumps(
|
json.dumps(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue