added wrong key type
This commit is contained in:
parent
e4dd0972a5
commit
52ef2da76d
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ async def api_payments_pay_invoice(bolt11: str, wallet: Wallet):
|
||||||
status_code=HTTPStatus.CREATED,
|
status_code=HTTPStatus.CREATED,
|
||||||
)
|
)
|
||||||
async def api_payments_create(
|
async def api_payments_create(
|
||||||
wallet: WalletTypeInfo = Depends(require_admin_key),
|
wallet: WalletTypeInfo = Depends(get_key_type),
|
||||||
invoiceData: CreateInvoiceData = Body(...),
|
invoiceData: CreateInvoiceData = Body(...),
|
||||||
):
|
):
|
||||||
if wallet.wallet_type < 0 or wallet.wallet_type > 2:
|
if wallet.wallet_type < 0 or wallet.wallet_type > 2:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue