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:
parent
dca0b9da92
commit
13867cd083
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue