Refactor query methods.

This commit is contained in:
Mike Cao 2020-09-24 23:02:11 -07:00
parent ee8859d86c
commit 1dfa6d8b16
2 changed files with 92 additions and 205 deletions

View file

@ -31,9 +31,3 @@ if (process.env.NODE_ENV === 'production') {
}
export default prisma;
export async function runQuery(query) {
return query.catch(e => {
throw e;
});
}