(fix) prisma set DATABASE_URL in env

This commit is contained in:
ishaan-jaff 2024-01-05 20:57:27 +05:30
parent 898c072103
commit 41f5cb7f04

View file

@ -254,6 +254,7 @@ class PrismaClient:
try:
from prisma import Client # type: ignore
os.environ["DATABASE_URL"] = database_url
self.db = Client() # Client to connect to Prisma db
except: # if not - go through normal setup process
print_verbose(