mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
test(test_keys.py): reset proxy spend
This commit is contained in:
parent
34c4532e7e
commit
8e1157fc92
4 changed files with 77 additions and 16 deletions
|
@ -655,13 +655,14 @@ class PrismaClient:
|
|||
user_id is not None
|
||||
or (table_name is not None and table_name == "user")
|
||||
and query_type == "update"
|
||||
and update_key_values is not None
|
||||
):
|
||||
"""
|
||||
If data['spend'] + data['user'], update the user table with spend info as well
|
||||
"""
|
||||
if user_id is None:
|
||||
user_id = db_data["user_id"]
|
||||
if update_key_values is None:
|
||||
update_key_values = db_data
|
||||
update_user_row = await self.db.litellm_usertable.upsert(
|
||||
where={"user_id": user_id}, # type: ignore
|
||||
data={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue