fix: undelete wallet (#3730)

This commit is contained in:
Vlad Stan
2026-01-20 13:51:20 +02:00
committed by GitHub
parent 09c35eaca0
commit ffad5d79c4
2 changed files with 59 additions and 1 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ async def api_users_create_user_wallet(
"/user/{user_id}/wallet/{wallet}/undelete", name="Reactivate deleted wallet"
)
async def api_users_undelete_user_wallet(user_id: str, wallet: str) -> SimpleStatus:
wal = await get_wallet(wallet)
wal = await get_wallet(wallet, deleted=True)
if not wal:
raise HTTPException(
status_code=HTTPStatus.NOT_FOUND,