mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
remove database_type from prisma getdb function
This commit is contained in:
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…
x
Reference in New Issue
Block a user