From d4abe51331d53532e18f749e860ae4e955a0a5bd Mon Sep 17 00:00:00 2001 From: Brian Cao Date: Wed, 28 Sep 2022 15:36:41 -0700 Subject: [PATCH] remove database_type from prisma getdb function --- lib/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.js b/lib/db.js index 58e769b7..e58a18c8 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;