fix: remove logging from prisma client and fix users API routes

This commit is contained in:
2026-03-31 01:15:57 -07:00
parent 492a18aa1b
commit e0d159ad8d
4 changed files with 56 additions and 12 deletions
-9
View File
@@ -11,15 +11,6 @@ const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL })
// Create PrismaClient with adapter
const createPrismaClient = () => {
const client = new PrismaClient({ adapter })
// Add logging if in development
if (process.env.NODE_ENV !== 'production') {
client.$on('query', (e) => {
console.log('Query:', e.query)
console.log('Duration:', e.duration, 'ms')
})
}
return client
}