@tachybase/database 1.3.43 → 1.3.45

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/lib/database.js +1 -1
  2. package/package.json +3 -3
package/lib/database.js CHANGED
@@ -166,7 +166,7 @@ const _Database = class _Database extends import_node_events.EventEmitter {
166
166
  }
167
167
  if (options.storage && options.storage !== ":memory:") {
168
168
  if (!(0, import_node_path.isAbsolute)(options.storage)) {
169
- opts.storage = (0, import_node_path.resolve)(process.cwd(), options.storage);
169
+ opts.storage = (0, import_node_path.resolve)(process.env.TEGO_RUNTIME_HOME, options.storage);
170
170
  }
171
171
  }
172
172
  if (options.dialect === "sqlite") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachybase/database",
3
- "version": "1.3.43",
3
+ "version": "1.3.45",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./lib/index.js",
@@ -23,8 +23,8 @@
23
23
  "semver": "7.7.2",
24
24
  "sequelize": "^6.37.5",
25
25
  "umzug": "^3.8.2",
26
- "@tachybase/logger": "1.3.43",
27
- "@tachybase/utils": "1.3.43"
26
+ "@tachybase/logger": "1.3.45",
27
+ "@tachybase/utils": "1.3.45"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/flat": "^5.0.5",