fix(proxy_server.py): bug fixes

This commit is contained in:
Krrish Dholakia 2024-02-25 00:12:16 -08:00
parent c33a472611
commit a83f890a9c
2 changed files with 7 additions and 4 deletions

View file

@ -4453,13 +4453,13 @@ async def new_team(
await prisma_client.update_data(
user_id=user.user_id,
data={"user_id": user.user_id, "teams": [team_row.team_id]},
update_key_values={
update_key_values_custom_query={
"teams": {
"push ": [team_row.team_id],
}
},
)
return team_row
return team_row.model_dump()
@router.post(