mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-08 20:47:02 +03:00
Fix read only db used by default
This commit is contained in:
@@ -47,7 +47,7 @@ export class Postgres implements IDatabase {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.config.postgresReadOnly) {
|
if (this.config.postgresReadOnly && this.config.postgresReadOnly.enabled) {
|
||||||
this.poolRead = new Pool(this.config.postgresReadOnly);
|
this.poolRead = new Pool(this.config.postgresReadOnly);
|
||||||
this.poolRead.on("error", (err, client) => {
|
this.poolRead.on("error", (err, client) => {
|
||||||
Logger.error(err.stack);
|
Logger.error(err.stack);
|
||||||
|
|||||||
Reference in New Issue
Block a user