Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Revert prisma disconnect change.

Mike Cao72065d0a0924
diff --git a/lib/db.js b/lib/db.js
index 1d39c05b6..e6d69fdb6 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 d89e834d6..45f766d0a 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 <[email protected]>",
"license": "MIT",