Fix boolean parsing in enable_card endpoint (#54)
This commit is contained in:
parent
79c74708e1
commit
74e746c9e9
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue