From 19e43c8d29b88f32d2b3b93aba65f0f9b8ae2add Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Thu, 28 Mar 2024 16:09:33 -0700 Subject: [PATCH] fix(proxy_server.py): return deleted team id's to confirm /team/delete worked --- litellm/proxy/proxy_server.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index ba9806fd1..cfb2648a4 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -5841,7 +5841,7 @@ async def update_team( - blocked: bool - Flag indicating if the team is blocked or not - will stop all calls from keys with this team_id. Example - update team TPM Limit - + ``` curl --location 'http://0.0.0.0:8000/team/update' \ @@ -6169,7 +6169,10 @@ async def delete_team( ## DELETE ASSOCIATED KEYS await prisma_client.delete_data(team_id_list=data.team_ids, table_name="key") ## DELETE TEAMS - await prisma_client.delete_data(team_id_list=data.team_ids, table_name="team") + deleted_teams = await prisma_client.delete_data( + team_id_list=data.team_ids, table_name="team" + ) + return deleted_teams @router.get(