@nocobase/database 1.9.0-alpha.1 → 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
|
}
|
|
@@ -108,6 +108,7 @@ const _ViewFieldInference = class _ViewFieldInference {
|
|
|
108
108
|
if (collectionField) {
|
|
109
109
|
if (collectionField.options.interface) {
|
|
110
110
|
inferResult.type = collectionField.type;
|
|
111
|
+
inferResult.interface = collectionField.options.interface;
|
|
111
112
|
inferResult.source = `${collectionField.collection.name}.${collectionField.name}`;
|
|
112
113
|
}
|
|
113
114
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/database",
|
|
3
|
-
"version": "1.9.0-alpha.
|
|
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.
|
|
10
|
-
"@nocobase/utils": "1.9.0-alpha.
|
|
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": "
|
|
41
|
+
"gitHead": "6805eded4b512efee8c191f58082bc0d43f0657a"
|
|
42
42
|
}
|