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.

remove database_type from prisma getdb function

Brian Caod4abe51331d5
diff --git a/lib/db.js b/lib/db.js
index 58e769b7d..e58a18c86 100644
--- a/lib/db.js
+++ b/lib/db.js
@@ -12,7 +12,7 @@ BigInt.prototype.toJSON = function () {
};
export function getDatabaseType(url = process.env.DATABASE_URL) {
- const type = process.env.DATABASE_TYPE || (url && url.split(':')[0]);
+ const type = url && url.split(':')[0];
if (type === 'postgres') {
return POSTGRESQL;