diff --git a/src/databases/Postgres.ts b/src/databases/Postgres.ts index 71571b1..dbaddb1 100644 --- a/src/databases/Postgres.ts +++ b/src/databases/Postgres.ts @@ -37,7 +37,10 @@ export class Postgres implements IDatabase { constructor(private config: DatabaseConfig) {} async init(): Promise { - this.pool = new Pool(this.config.postgres); + this.pool = new Pool({ + ...this.config.postgres, + statement_timeout: 25000 + }); this.pool.on("error", (err, client) => { Logger.error(err.stack); this.lastPoolFail = Date.now();