fix - return success spend reset

This commit is contained in:
Ishaan Jaff 2024-05-14 11:38:39 -07:00
parent ca41e6590e
commit 787c02c8db

View file

@ -5931,7 +5931,7 @@ async def view_spend_logs(
)
@router.get(
@router.post(
"/global/spend/reset",
tags=["Budget & Spend Tracking"],
dependencies=[Depends(user_api_key_auth)],
@ -5961,6 +5961,11 @@ async def global_spend_reset():
)
await prisma_client.db.litellm_teamtable.update_many(data={"spend": 0.0}, where={})
return {
"message": "Spend for all API Keys and Teams reset successfully",
"status": "success",
}
@router.get(
"/global/spend/logs",