Skip to content

Commit

Permalink
corrected single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
EricFrancis12 committed Jul 18, 2024
1 parent 59402aa commit c2f8a3d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/lib/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ const prismaClientSingleton = () => {
const prisma = new PrismaClient({
log: [
{
emit: 'event',
level: 'error',
emit: "event",
level: "error",
},
{
emit: 'event',
level: 'info',
emit: "event",
level: "info",
},
{
emit: 'event',
level: 'warn',
emit: "event",
level: "warn",
},
],
});

if (process.env.NODE_ENV !== "test" // Prevents logs during tests
&& process.env.NEXT_PHASE !== "phase-production-build" // Prevents logs during next build
) {
prisma.$on('error', e => console.error(e.message));
prisma.$on('info', e => console.log(e.message));
prisma.$on('warn', e => console.log(e.message));
prisma.$on("error", e => console.error(e.message));
prisma.$on("info", e => console.log(e.message));
prisma.$on("warn", e => console.log(e.message));
}

return prisma;
Expand Down

0 comments on commit c2f8a3d

Please sign in to comment.