From 74e746c9e9eb25bf812d894b7050f28c2d8f7e02 Mon Sep 17 00:00:00 2001 From: iwarp Date: Mon, 5 May 2025 08:27:51 +0200 Subject: [PATCH] Fix boolean parsing in enable_card endpoint (#54) --- views_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views_api.py b/views_api.py index a2f7a12..3bbe6dd 100644 --- a/views_api.py +++ b/views_api.py @@ -114,8 +114,8 @@ async def api_card_create( "/api/v1/cards/enable/{card_id}/{enable}", status_code=HTTPStatus.OK ) async def enable_card( - card_id, - enable, + card_id: str, + enable: bool, wallet: WalletTypeInfo = Depends(require_admin_key), ): card = await get_card(card_id)