subdomain formatting

This commit is contained in:
dni ⚡ 2023-02-07 10:17:01 +01:00
parent 2fb8eb505a
commit 9f6dc18be7
No known key found for this signature in database
GPG Key ID: 886317704CC4E618

View File

@ -1,6 +1,6 @@
import asyncio import asyncio
import httpx
import httpx
from loguru import logger from loguru import logger
from lnbits.core.models import Payment from lnbits.core.models import Payment
@ -42,8 +42,6 @@ async def on_invoice_paid(payment: Payment) -> None:
logger.error("could not create subdomain on cloudflare") logger.error("could not create subdomain on cloudflare")
return return
### Use webhook to notify about cloudflare registration ### Use webhook to notify about cloudflare registration
if domain and domain.webhook: if domain and domain.webhook:
async with httpx.AsyncClient() as client: async with httpx.AsyncClient() as client: