@nocobase/database 1.9.0-alpha.2 → 1.9.0-alpha.3

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.
@@ -126,6 +126,9 @@ const _MagicAttributeModel = class _MagicAttributeModel extends import_model.Mod
126
126
  return this;
127
127
  }
128
128
  if (!options) options = {};
129
+ if (this.dataValues[this.magicAttribute] === null) {
130
+ this.dataValues[this.magicAttribute] = {};
131
+ }
129
132
  if (!options.raw) {
130
133
  originalValue = this.dataValues[key];
131
134
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nocobase/database",
3
- "version": "1.9.0-alpha.2",
3
+ "version": "1.9.0-alpha.3",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
7
7
  "license": "AGPL-3.0",
8
8
  "dependencies": {
9
- "@nocobase/logger": "1.9.0-alpha.2",
10
- "@nocobase/utils": "1.9.0-alpha.2",
9
+ "@nocobase/logger": "1.9.0-alpha.3",
10
+ "@nocobase/utils": "1.9.0-alpha.3",
11
11
  "async-mutex": "^0.3.2",
12
12
  "chalk": "^4.1.1",
13
13
  "cron-parser": "4.4.0",
@@ -38,5 +38,5 @@
38
38
  "url": "git+https://github.com/nocobase/nocobase.git",
39
39
  "directory": "packages/database"
40
40
  },
41
- "gitHead": "b6d8a2176e2b58bee3cf412aa66be6ee657507ee"
41
+ "gitHead": "6805eded4b512efee8c191f58082bc0d43f0657a"
42
42
  }