stacker.news/api/models/index.js

8 lines
142 B
JavaScript
Raw Normal View History

2021-03-25 19:29:24 +00:00
import { PrismaClient } from '@prisma/client'
2021-09-30 15:46:58 +00:00
global.prisma ||= new PrismaClient({
log: ['warn', 'error']
2021-08-17 18:15:24 +00:00
})
2021-03-25 19:29:24 +00:00
2021-09-30 15:46:58 +00:00
export default global.prisma