mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +01:00
Merge pull request #71 from HipsterBrown/update-get-database
Update getDatabase to lookup DATABASE_TYPE env
This commit is contained in:
commit
2910eb5c2d
@ -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