Fix not all db config vars being used

This commit is contained in:
Ajay
2022-06-14 16:22:59 -04:00
parent 5c43750835
commit 749fa4bb95

View File

@@ -17,11 +17,8 @@ if (config.mysql) {
readOnly: config.readOnly,
createDbIfNotExists: config.createDatabaseIfNotExist,
postgres: {
user: config.postgres?.user,
host: config.postgres?.host,
...config.postgres,
database: "sponsorTimes",
password: config.postgres?.password,
port: config.postgres?.port,
}
});
@@ -32,11 +29,8 @@ if (config.mysql) {
readOnly: config.readOnly,
createDbIfNotExists: config.createDatabaseIfNotExist,
postgres: {
user: config.postgres?.user,
host: config.postgres?.host,
database: "privateDB",
password: config.postgres?.password,
port: config.postgres?.port,
...config.postgres,
database: "privateDB"
}
});
} else {