remove database_type from prisma getdb function

This commit is contained in:
Brian Cao 2022-09-28 15:36:41 -07:00
parent b3d7d49448
commit d4abe51331

View File

@ -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;