Revert prisma disconnect change.

This commit is contained in:
Mike Cao 2020-08-19 00:01:07 -07:00
parent 3604a845b4
commit 72065d0a09
2 changed files with 4 additions and 8 deletions

View File

@ -33,11 +33,7 @@ if (process.env.NODE_ENV === 'production') {
export default prisma;
export async function runQuery(query) {
return query
.catch(e => {
console.error(e);
})
.finally(() => {
prisma.$disconnect();
});
return query.catch(e => {
console.error(e);
});
}

View File

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