mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
fix(PostgreSQL): idle timeout disabled
This commit is contained in:
@ -144,7 +144,11 @@ export class PostgreSQLClient extends AntaresCore {
|
||||
|
||||
async getConnectionPool () {
|
||||
const dbConfig = await this.getDbConfig();
|
||||
const pool = new pg.Pool({ ...dbConfig, max: this._poolSize });
|
||||
const pool = new pg.Pool({
|
||||
...dbConfig,
|
||||
max: this._poolSize,
|
||||
idleTimeoutMillis: 0
|
||||
});
|
||||
const connection = pool;
|
||||
|
||||
if (this._params.readonly) {
|
||||
|
Reference in New Issue
Block a user