sendou.ink/prisma/client.ts
Kalle cfd8de5d1d
Migration for western LB (#472)
* Migration

* Bot freeAgents API get profile updatedAt

* Add isJP script
2021-05-01 16:27:14 +03:00

17 lines
307 B
TypeScript

// @ts-nocheck
import { PrismaClient } from "@prisma/client";
let prisma: PrismaClient;
if (!global.prisma) {
global.prisma = new PrismaClient(
process.env.NODE_ENV !== "production"
? { log: ["query", "info", "warn"] }
: undefined
);
}
prisma = global.prisma;
export default prisma;