From 10491da7c2f51ec453eb5a54852b4d704b78b67d Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 22 Jul 2022 17:27:32 -0400 Subject: [PATCH] Raise timeout --- src/databases/Postgres.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/databases/Postgres.ts b/src/databases/Postgres.ts index a0014be..71571b1 100644 --- a/src/databases/Postgres.ts +++ b/src/databases/Postgres.ts @@ -1,6 +1,6 @@ import { Logger } from "../utils/logger"; import { IDatabase, QueryOption, QueryType } from "./IDatabase"; -import { Client, Pool, PoolClient, types } from "pg"; +import { Client, Pool, types } from "pg"; import fs from "fs"; import { CustomPostgresConfig, CustomPostgresReadOnlyConfig } from "../types/config.model"; @@ -52,7 +52,7 @@ export class Postgres implements IDatabase { if (this.config.postgresReadOnly && this.config.postgresReadOnly.enabled) { this.poolRead = new Pool({ ...this.config.postgresReadOnly, - statement_timeout: 120 + statement_timeout: 300 }); this.poolRead.on("error", (err, client) => { Logger.error(err.stack);