remove database_type from prisma getdb function
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user