1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-11 23:31:17 -05:00

fix(?): this might fix some people's weard errors.

This commit is contained in:
Jayvin Hernandez 2025-02-02 23:22:16 -08:00
parent dca0b9da92
commit 13867cd083
No known key found for this signature in database
GPG key ID: 97C2E533F17AF0EB

View file

@ -1,6 +1,8 @@
import { PrismaClient } from '@prisma/client';
import 'lib/config';
if (!global.prisma) {
process.env.DATABASE_URL = config.core.database_url;
if (!process.env.ZIPLINE_DOCKER_BUILD) global.prisma = new PrismaClient();
}