mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +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
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