mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
update getDatabase to lookup DATABASE_TYPE env
This commit is contained in:
parent
3e1bc27f26
commit
ef8da2fbcc
@ -6,7 +6,7 @@ const POSTGRESQL = 'postgresql';
|
||||
const MYSQL = 'mysql';
|
||||
|
||||
export function getDatabase() {
|
||||
return process.env.DATABASE_URL.split(':')[0];
|
||||
return process.env.DATABASE_TYPE || process.env.DATABASE_URL.split(':')[0];
|
||||
}
|
||||
|
||||
export async function getWebsiteById(website_id) {
|
||||
|
Loading…
Reference in New Issue
Block a user