stacker.news/api/models/index.js

8 lines
142 B
JavaScript

import { PrismaClient } from '@prisma/client'
global.prisma ||= new PrismaClient({
log: ['warn', 'error']
})
export default global.prisma