forked from phoenix/litellm-mirror
(fix) bug from bb7705b494
This commit is contained in:
parent
3305dc75ca
commit
d694993703
1 changed files with 4 additions and 5 deletions
|
@ -473,11 +473,10 @@ class PrismaClient:
|
||||||
"budget_reset_at": {"lt": reset_at},
|
"budget_reset_at": {"lt": reset_at},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return response
|
elif query_type == "find_all":
|
||||||
elif table_name == "user" and query_type == "find_all":
|
response = await self.db.litellm_usertable.find_many( # type: ignore
|
||||||
response = await self.db.litellm_usertable.find_many( # type: ignore
|
order={"spend": "desc"},
|
||||||
order={"spend": "desc"},
|
)
|
||||||
)
|
|
||||||
return response
|
return response
|
||||||
elif table_name == "spend":
|
elif table_name == "spend":
|
||||||
verbose_proxy_logger.debug(
|
verbose_proxy_logger.debug(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue