mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 22:17:14 +03:00
Fix not all db config vars being used
This commit is contained in:
@@ -17,11 +17,8 @@ if (config.mysql) {
|
|||||||
readOnly: config.readOnly,
|
readOnly: config.readOnly,
|
||||||
createDbIfNotExists: config.createDatabaseIfNotExist,
|
createDbIfNotExists: config.createDatabaseIfNotExist,
|
||||||
postgres: {
|
postgres: {
|
||||||
user: config.postgres?.user,
|
...config.postgres,
|
||||||
host: config.postgres?.host,
|
|
||||||
database: "sponsorTimes",
|
database: "sponsorTimes",
|
||||||
password: config.postgres?.password,
|
|
||||||
port: config.postgres?.port,
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -32,11 +29,8 @@ if (config.mysql) {
|
|||||||
readOnly: config.readOnly,
|
readOnly: config.readOnly,
|
||||||
createDbIfNotExists: config.createDatabaseIfNotExist,
|
createDbIfNotExists: config.createDatabaseIfNotExist,
|
||||||
postgres: {
|
postgres: {
|
||||||
user: config.postgres?.user,
|
...config.postgres,
|
||||||
host: config.postgres?.host,
|
database: "privateDB"
|
||||||
database: "privateDB",
|
|
||||||
password: config.postgres?.password,
|
|
||||||
port: config.postgres?.port,
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user