Minor tweaks.

This commit is contained in:
Mike Cao 2020-07-20 19:24:33 -07:00
parent 132bbcbe0d
commit 0edf87941a
6 changed files with 24 additions and 22 deletions

View file

@ -1,6 +1,8 @@
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
const prisma = new PrismaClient({
log: [process.env.NODE_ENV !== 'production' && 'query'],
});
export async function runQuery(query) {
return query