Removed disconnect code.

This commit is contained in:
Mike Cao committed 2020-10-07 08:31:44 -07:00
1 parent e2b2238fb9
commit dca51050e8
2 files changed
+4 -8

No files matched your search

+3 -7
View File
@@ -16,13 +16,9 @@ export function getDatabase() {
}
export async function runQuery(query) {
return query
.catch(e => {
throw e;
})
.finally(async () => {
await prisma.$disconnect();
});
return query.catch(e => {
throw e;
});
}
export async function rawQuery(query, params = []) {