From 8fb9c8d8334977d7e1694df9e5bc4e665cef33cd Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 22 Apr 2024 14:15:09 -0700 Subject: [PATCH] ui - find all teams --- litellm/proxy/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index e5051590ac..19b9a0a60f 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -1190,6 +1190,8 @@ class PrismaClient: response = await self.db.litellm_teamtable.find_many( where={"team_id": {"in": team_id_list}} ) + elif query_type == "find_all" and team_id_list is None: + response = await self.db.litellm_teamtable.find_many(take=20) return response elif table_name == "user_notification": if query_type == "find_unique":