withdraws working

This commit is contained in:
ben
2022-08-28 11:59:21 +01:00
parent cb5c11fae4
commit 8cabd7b5a4
2 changed files with 16 additions and 24 deletions
-3
View File
@@ -49,7 +49,6 @@ async def api_card_create_or_update(
card_id: str = None,
wallet: WalletTypeInfo = Depends(require_admin_key),
):
logger.debug(len(bytes.fromhex(data.uid)))
try:
if len(bytes.fromhex(data.uid)) != 7:
raise HTTPException(
@@ -106,8 +105,6 @@ async def enable_card(
detail="Not your card.", status_code=HTTPStatus.FORBIDDEN
)
card = await enable_disable_card(enable=enable, id=card_id)
logger.debug(enable)
logger.debug(card)
return card.dict()
@boltcards_ext.delete("/api/v1/cards/{card_id}")