diff --git a/src/databases/Postgres.ts b/src/databases/Postgres.ts index c52d7a5..b8ca3a8 100644 --- a/src/databases/Postgres.ts +++ b/src/databases/Postgres.ts @@ -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.on("error", (err, client) => { Logger.error(err.stack);