mirror of
https://github.com/p-stream/backend.git
synced 2026-01-11 20:10:33 +00:00
fix lint and import error
This commit is contained in:
parent
d543997db7
commit
4939becabf
1 changed files with 4 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { PrismaPg } from '@prisma/adapter-pg';
|
||||
import { PrismaClient } from '../../generated/client';
|
||||
import { PrismaClient } from '../generated';
|
||||
|
||||
const adapter = new PrismaPg({
|
||||
connectionString: process.env.DATABASE_URL,
|
||||
|
|
@ -9,6 +9,8 @@ const globalForPrisma = globalThis as unknown as {
|
|||
prisma: PrismaClient | undefined;
|
||||
};
|
||||
|
||||
export const prisma = new PrismaClient({ adapter });
|
||||
export const prisma = new PrismaClient({
|
||||
adapter,
|
||||
} as any);
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = prisma;
|
||||
|
|
|
|||
Loading…
Reference in a new issue