From d6949937030d2d6ea7f04b2fcc1996d30bf917f5 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Wed, 24 Jan 2024 17:34:17 -0800 Subject: [PATCH] (fix) bug from bb7705b4945b28be5cdc4a382de0ce116e24b621 --- litellm/proxy/utils.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 39a2f91e4..15f230a6a 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -473,11 +473,10 @@ class PrismaClient: "budget_reset_at": {"lt": reset_at}, } ) - return response - elif table_name == "user" and query_type == "find_all": - response = await self.db.litellm_usertable.find_many( # type: ignore - order={"spend": "desc"}, - ) + elif query_type == "find_all": + response = await self.db.litellm_usertable.find_many( # type: ignore + order={"spend": "desc"}, + ) return response elif table_name == "spend": verbose_proxy_logger.debug(