@ejfdelgado/ejflab-back 1.30.0 → 1.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ejfdelgado/ejflab-back",
3
- "version": "1.30.0",
3
+ "version": "1.30.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ejfdelgado/ejflab-back.git"
@@ -79,12 +79,14 @@ export class PostgresSrv {
79
79
  const database = process.env.POSTGRES_DB || "nogales";
80
80
  const user = process.env.POSTGRES_USER || "user";
81
81
  const password = process.env.POSTGRES_PASSWORD || "pass";
82
+ const timeout = process.env.POSTGRES_TIMEOUT || "2000";
82
83
  return {
83
84
  host,
84
85
  port,
85
86
  database,
86
87
  user,
87
88
  password,
89
+ timeout,
88
90
  };
89
91
  }
90
92
 
@@ -139,6 +141,7 @@ export class PostgresSrv {
139
141
  host: params.host,
140
142
  port: params.port,
141
143
  database: params.database,
144
+ connectionTimeoutMillis: parseInt(params.timeout),
142
145
  });
143
146
  }
144
147