rename function
This commit is contained in:
parent
048ccd6d65
commit
632636ff0a
2 changed files with 3 additions and 3 deletions
|
|
@ -82,7 +82,7 @@ async def get_all_addresses(wallet_ids: Union[str, List[str]]) -> List[Address]:
|
|||
return [Address.from_row(row) for row in rows]
|
||||
|
||||
|
||||
async def activate_domain(domain_id: str, address_id: str) -> Address:
|
||||
async def activate_address(domain_id: str, address_id: str) -> Address:
|
||||
await db.execute(
|
||||
"""
|
||||
UPDATE nostrnip5.addresses
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ from lnbits.core.models import Payment
|
|||
from lnbits.helpers import urlsafe_short_hash
|
||||
from lnbits.tasks import internal_invoice_queue, register_invoice_listener
|
||||
|
||||
from .crud import activate_domain, get_domain
|
||||
from .crud import activate_address, get_domain
|
||||
|
||||
|
||||
async def wait_for_paid_invoices():
|
||||
|
|
@ -25,6 +25,6 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||
domain_id = payment.extra.get("domain_id")
|
||||
address_id = payment.extra.get("address_id")
|
||||
|
||||
active = await activate_domain(domain_id, address_id)
|
||||
active = await activate_address(domain_id, address_id)
|
||||
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue