revert some changes
This commit is contained in:
parent
059fcecc5f
commit
ccd3fcb8c1
|
@ -20,7 +20,6 @@ export default function NewLinkModal({ onClose }: Props) {
|
||||||
const { data } = useSession();
|
const { data } = useSession();
|
||||||
|
|
||||||
const initial = {
|
const initial = {
|
||||||
id: 0,
|
|
||||||
name: "",
|
name: "",
|
||||||
url: "",
|
url: "",
|
||||||
description: "",
|
description: "",
|
||||||
|
|
|
@ -5,7 +5,7 @@ const globalForPrisma = global as unknown as { prisma: PrismaClient };
|
||||||
export const prisma =
|
export const prisma =
|
||||||
globalForPrisma.prisma ||
|
globalForPrisma.prisma ||
|
||||||
new PrismaClient({
|
new PrismaClient({
|
||||||
log: ["warn"],
|
log: ["query"],
|
||||||
});
|
});
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma;
|
if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma;
|
||||||
|
|
Ŝarĝante…
Reference in New Issue