Lint files

This commit is contained in:
AbdBarho
2022-12-29 13:00:54 +01:00
parent 71e260ec52
commit 0ffbe625f5
12 changed files with 265 additions and 17 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
import { PrismaClient } from "@prisma/client";
declare global {
var prisma;
// eslint-disable-next-line no-var
var prisma: PrismaClient | undefined;
}
const client = globalThis.prisma || new PrismaClient();
const client = new PrismaClient();
if (process.env.NODE_ENV !== "production") {
globalThis.prisma = client;
}