forked from phoenix/litellm-mirror
fix(dynamo_db.py): fix update bug
This commit is contained in:
parent
8e1157fc92
commit
0752048b81
3 changed files with 6 additions and 1 deletions
|
@ -686,7 +686,7 @@ async def update_database(
|
|||
continue
|
||||
if prisma_client is not None:
|
||||
existing_spend_obj = await prisma_client.get_data(user_id=id)
|
||||
elif custom_db_client is not None:
|
||||
elif custom_db_client is not None and id != litellm_proxy_budget_name:
|
||||
existing_spend_obj = await custom_db_client.get_data(
|
||||
key=id, table_name="user"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue