fix(dynamo_db.py): fix update bug

This commit is contained in:
Krrish Dholakia 2024-01-24 21:29:56 -08:00
parent 8e1157fc92
commit 0752048b81
3 changed files with 6 additions and 1 deletions

View file

@ -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"
)