fix(proxy_server.py): return deleted team id's to confirm /team/delete worked

This commit is contained in:
Krrish Dholakia 2024-03-28 16:09:33 -07:00
parent f80b500917
commit 19e43c8d29

View file

@ -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(