@heyhru/app-dms-server 0.3.4 → 0.3.7

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -448,7 +448,7 @@ async function postSqlDatabases(req, reply) {
448
448
  ...ds,
449
449
  database: ds.database ?? (ds.type === "postgres" ? "postgres" : "")
450
450
  });
451
- const sql = ds.type === "mysql" ? "SHOW DATABASES" : "SELECT datname FROM pg_database WHERE datistemplate = false ORDER BY datname";
451
+ const sql = ds.type === "mysql" ? "SHOW DATABASES" : "SELECT datname FROM pg_database WHERE datistemplate = false AND datname NOT IN ('cloudsqladmin') ORDER BY datname";
452
452
  try {
453
453
  const rows = await pool.execute(sql);
454
454
  const names = rows.map(
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.3.4",
6
+ "version": "0.3.7",
7
7
  "description": "DMS backend API server built on Fastify",
8
8
  "type": "module",
9
9
  "main": "./dist/index.mjs",
@@ -36,5 +36,5 @@
36
36
  "typescript": "^6.0.2",
37
37
  "vitest": "^4.1.2"
38
38
  },
39
- "gitHead": "df5a2e9fb6be05385754a7942b0645b4648e10a2"
39
+ "gitHead": "5844861336ff4df88282f00a0eecd3a9a1fb50ea"
40
40
  }