fixed internal lnurl
This commit is contained in:
parent
db734d4acd
commit
dab943baad
1 changed files with 3 additions and 3 deletions
|
|
@ -167,8 +167,8 @@ async def api_payments_create_invoice(data: CreateInvoiceData, wallet: Wallet):
|
||||||
|
|
||||||
lnurl_response: Union[None, bool, str] = None
|
lnurl_response: Union[None, bool, str] = None
|
||||||
if data.lnurl_callback:
|
if data.lnurl_callback:
|
||||||
if "lnurl_balance_check" in g().data:
|
if "lnurl_balance_check" in data:
|
||||||
save_balance_check(g().wallet.id, data.lnurl_balance_check)
|
save_balance_check(wallet.id, data.lnurl_balance_check)
|
||||||
|
|
||||||
async with httpx.AsyncClient() as client:
|
async with httpx.AsyncClient() as client:
|
||||||
try:
|
try:
|
||||||
|
|
@ -179,7 +179,7 @@ async def api_payments_create_invoice(data: CreateInvoiceData, wallet: Wallet):
|
||||||
"balanceNotify": url_for(
|
"balanceNotify": url_for(
|
||||||
f"/withdraw/notify/{urlparse(data.lnurl_callback).netloc}",
|
f"/withdraw/notify/{urlparse(data.lnurl_callback).netloc}",
|
||||||
external=True,
|
external=True,
|
||||||
wal=g().wallet.id,
|
wal=wallet.id,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
timeout=10,
|
timeout=10,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue