mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-05 02:58:42 +02:00
ignore Body type
This commit is contained in:
@@ -261,7 +261,7 @@ async def api_payments_pay_invoice(bolt11: str, wallet: Wallet):
|
|||||||
)
|
)
|
||||||
async def api_payments_create(
|
async def api_payments_create(
|
||||||
wallet: WalletTypeInfo = Depends(require_invoice_key),
|
wallet: WalletTypeInfo = Depends(require_invoice_key),
|
||||||
invoiceData: CreateInvoiceData = Body(...),
|
invoiceData: CreateInvoiceData = Body(...), #type: ignore
|
||||||
):
|
):
|
||||||
if invoiceData.out is True and wallet.wallet_type == 0:
|
if invoiceData.out is True and wallet.wallet_type == 0:
|
||||||
if not invoiceData.bolt11:
|
if not invoiceData.bolt11:
|
||||||
|
Reference in New Issue
Block a user