@nocobase/database 1.8.6 → 1.8.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.
@@ -126,8 +126,8 @@ const _MagicAttributeModel = class _MagicAttributeModel extends import_model.Mod
126
126
  return this;
127
127
  }
128
128
  if (!options) options = {};
129
- if (this.dataValues.options === null) {
130
- this.dataValues.options = {};
129
+ if (this.dataValues[this.magicAttribute] === null) {
130
+ this.dataValues[this.magicAttribute] = {};
131
131
  }
132
132
  if (!options.raw) {
133
133
  originalValue = this.dataValues[key];
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nocobase/database",
3
- "version": "1.8.6",
3
+ "version": "1.8.7",
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.8.6",
10
- "@nocobase/utils": "1.8.6",
9
+ "@nocobase/logger": "1.8.7",
10
+ "@nocobase/utils": "1.8.7",
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": "8692cfdd094d7a423d8932d4f4fbb0a24eb59af7"
41
+ "gitHead": "31229ac95e4fa3edf998d2a02fc982ade14ac09e"
42
42
  }