fix add fix to update spend logs

This commit is contained in:
Ishaan Jaff 2024-07-19 12:49:23 -07:00
parent f7f4b9bee7
commit df1ac92222
2 changed files with 31 additions and 0 deletions

View file

@ -2604,6 +2604,9 @@ async def startup_event():
### CHECK IF VIEW EXISTS ###
if prisma_client is not None:
create_view_response = await prisma_client.check_view_exists()
# Apply misc fixes on DB
# [non-blocking] helper to apply fixes from older litellm versions
asyncio.create_task(prisma_client.apply_db_fixes())
### START BATCH WRITING DB + CHECKING NEW MODELS###
if prisma_client is not None: