mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
update getDatabase to lookup DATABASE_TYPE env
This commit is contained in:
parent
3e1bc27f26
commit
ef8da2fbcc
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ const POSTGRESQL = 'postgresql';
|
||||||
const MYSQL = 'mysql';
|
const MYSQL = 'mysql';
|
||||||
|
|
||||||
export function getDatabase() {
|
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) {
|
export async function getWebsiteById(website_id) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue