ignore Body type

This commit is contained in:
dni 2022-07-25 12:09:29 +02:00
parent 800eda2f6d
commit 9cecd42467

View File

@ -261,7 +261,7 @@ async def api_payments_pay_invoice(bolt11: str, wallet: Wallet):
)
async def api_payments_create(
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 not invoiceData.bolt11: