(feat) /spend/users endpoint

This commit is contained in:
ishaan-jaff 2024-01-24 11:34:28 -08:00
parent d3848b6e6c
commit 2692afca75
2 changed files with 10 additions and 3 deletions

View file

@ -432,6 +432,11 @@ class PrismaClient:
}
)
return response
elif table_name == "user" and 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(
f"PrismaClient: get_data: table_name == 'spend'"