Removed disconnect code.

This commit is contained in:
Mike Cao 2020-10-07 08:31:44 -07:00
parent e2b2238fb9
commit dca51050e8
2 changed files with 4 additions and 8 deletions

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 = []) {

View File

@ -1,6 +1,6 @@
{
"name": "umami",
"version": "0.78.0",
"version": "0.80.0",
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
"author": "Mike Cao <mike@mikecao.com>",
"license": "MIT",