remove database_type from prisma getdb function
parent
b3d7d49448
commit
d4abe51331
|
@ -12,7 +12,7 @@ BigInt.prototype.toJSON = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
export function getDatabaseType(url = process.env.DATABASE_URL) {
|
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') {
|
if (type === 'postgres') {
|
||||||
return POSTGRESQL;
|
return POSTGRESQL;
|
||||||
|
|
Loading…
Reference in New Issue