fix(proxy/utils.py): fix create missing views check (#5953)

This commit is contained in:
Krish Dholakia 2024-09-27 20:32:46 -07:00 committed by GitHub
parent db59ac93cb
commit 6883c49acf

View file

@ -1179,9 +1179,9 @@ class PrismaClient:
"LiteLLM_VerificationTokenView Created in DB!"
)
else:
should_create_views = await should_create_missing_views(db=self.db.db) # type: ignore
should_create_views = await should_create_missing_views(db=self.db)
if should_create_views:
await create_missing_views(db=self.db) # type: ignore
await create_missing_views(db=self.db)
else:
# don't block execution if these views are missing
# Convert lists to sets for efficient difference calculation