mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix get_all_team_memberships
This commit is contained in:
parent
54d8d46a3b
commit
005846316d
1 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,9 @@ async def get_all_team_memberships(
|
|||
) -> List[LiteLLM_TeamMembership]:
|
||||
"""Get all team memberships for a given user"""
|
||||
## GET ALL MEMBERSHIPS ##
|
||||
if not isinstance(user_id, str):
|
||||
user_id = str(user_id)
|
||||
|
||||
team_memberships = await prisma_client.db.litellm_teammembership.find_many(
|
||||
where=(
|
||||
{"user_id": user_id, "team_id": {"in": team_id}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue