@nocobase/database 1.4.0-alpha.20240919174335 → 1.4.0-alpha.20240923152933
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.
|
@@ -123,7 +123,7 @@ const _RelationRepository = class _RelationRepository {
|
|
|
123
123
|
}
|
|
124
124
|
convertTk(options) {
|
|
125
125
|
let tk = options;
|
|
126
|
-
if (typeof options === "object" &&
|
|
126
|
+
if (typeof options === "object" && "tk" in options) {
|
|
127
127
|
tk = options["tk"];
|
|
128
128
|
}
|
|
129
129
|
return tk;
|
|
@@ -133,7 +133,10 @@ const _RelationRepository = class _RelationRepository {
|
|
|
133
133
|
if (typeof tk === "string") {
|
|
134
134
|
tk = tk.split(",");
|
|
135
135
|
}
|
|
136
|
-
|
|
136
|
+
if (tk) {
|
|
137
|
+
return import_lodash.default.castArray(tk);
|
|
138
|
+
}
|
|
139
|
+
return [];
|
|
137
140
|
}
|
|
138
141
|
targetKey() {
|
|
139
142
|
return this.associationField.targetKey;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/database",
|
|
3
|
-
"version": "1.4.0-alpha.
|
|
3
|
+
"version": "1.4.0-alpha.20240923152933",
|
|
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.4.0-alpha.
|
|
10
|
-
"@nocobase/utils": "1.4.0-alpha.
|
|
9
|
+
"@nocobase/logger": "1.4.0-alpha.20240923152933",
|
|
10
|
+
"@nocobase/utils": "1.4.0-alpha.20240923152933",
|
|
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": "bd1a83a7040a63619a3d39c5b67048fa97a49f5a"
|
|
42
42
|
}
|