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 initial = {
|
||||
id: 0,
|
||||
name: "",
|
||||
url: "",
|
||||
description: "",
|
||||
|
|
|
@ -5,7 +5,7 @@ const globalForPrisma = global as unknown as { prisma: PrismaClient };
|
|||
export const prisma =
|
||||
globalForPrisma.prisma ||
|
||||
new PrismaClient({
|
||||
log: ["warn"],
|
||||
log: ["query"],
|
||||
});
|
||||
|
||||
if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma;
|
||||
|
|
Ŝarĝante…
Reference in New Issue