mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
remove database_type from prisma getdb function
This commit is contained in:
parent
b3d7d49448
commit
d4abe51331
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue