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 39b5d8f383
commit 754981a78f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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