fix(proxy/utils.py): don't keep connecting to db if connection already established

This commit is contained in:
Krrish Dholakia 2024-01-03 17:43:44 +05:30
parent f2da345173
commit 469ae0a378
2 changed files with 7 additions and 3 deletions

View file

@ -1014,7 +1014,7 @@ async def startup_event():
) # start the background health check coroutine.
print_verbose(f"prisma client - {prisma_client}")
if prisma_client:
if prisma_client is not None:
await prisma_client.connect()
if prisma_client is not None and master_key is not None: