From 72065d0a0924977b78cdf4fba85775ae254bf960 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Wed, 19 Aug 2020 00:01:07 -0700 Subject: [PATCH] Revert prisma disconnect change. --- lib/db.js | 10 +++------- package.json | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/db.js b/lib/db.js index 1d39c05b..e6d69fdb 100644 --- a/lib/db.js +++ b/lib/db.js @@ -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); + }); } diff --git a/package.json b/package.json index d89e834d..45f766d0 100644 --- a/package.json +++ b/package.json @@ -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 ", "license": "MIT",