Fix boolean parsing in enable_card endpoint (#54)

This commit is contained in:
iwarp 2025-05-05 08:27:51 +02:00 committed by GitHub
commit 74e746c9e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,8 +114,8 @@ async def api_card_create(
"/api/v1/cards/enable/{card_id}/{enable}", status_code=HTTPStatus.OK "/api/v1/cards/enable/{card_id}/{enable}", status_code=HTTPStatus.OK
) )
async def enable_card( async def enable_card(
card_id, card_id: str,
enable, enable: bool,
wallet: WalletTypeInfo = Depends(require_admin_key), wallet: WalletTypeInfo = Depends(require_admin_key),
): ):
card = await get_card(card_id) card = await get_card(card_id)