@opengis/fastify-table 1.3.70 → 1.3.71

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": "@opengis/fastify-table",
3
- "version": "1.3.70",
3
+ "version": "1.3.71",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [
@@ -11,6 +11,7 @@ import init from './init.js';
11
11
  import getDBParams from './getDBParams.js';
12
12
 
13
13
  function getPG(param) {
14
+ if (!config.pg) return null;
14
15
  const dbListParams = dblist.find(el => el.key === param?.key)
15
16
  || dblist.find(el => el.database === (param?.db || param?.database || param) && el.port === param?.port);
16
17
  const {
@@ -11,6 +11,7 @@ import init from './init.js';
11
11
  import getDBParams from './getDBParams.js';
12
12
 
13
13
  async function getPGAsync(param) {
14
+ if (!config.pg) return null;
14
15
  const dbListParams = dblist.find(el => el.key === param?.key)
15
16
  || dblist.find(el => el.database === (param?.db || param?.database || param) && el.port === param?.port);
16
17
  const {