This commit is contained in:
Timothy Jaeryang Baek
2026-04-24 16:17:46 +09:00
parent 5cc55e2278
commit 678c44c7cd
12 changed files with 268 additions and 76 deletions
+4
View File
@@ -550,6 +550,8 @@ async def update_user_by_id(
detail=ERROR_MESSAGES.ACTION_PROHIBITED,
)
except HTTPException:
raise
except Exception as e:
log.error(f'Error checking primary admin status: {e}')
raise HTTPException(
@@ -631,6 +633,8 @@ async def delete_user_by_id(user_id: str, user=Depends(get_admin_user), db: Asyn
status_code=status.HTTP_403_FORBIDDEN,
detail=ERROR_MESSAGES.ACTION_PROHIBITED,
)
except HTTPException:
raise
except Exception as e:
log.error(f'Error checking primary admin status: {e}')
raise HTTPException(