@nocobase/database 1.0.1-alpha.1 → 1.2.0-alpha
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.
|
@@ -33,6 +33,9 @@ module.exports = __toCommonJS(to_many_interface_exports);
|
|
|
33
33
|
var import_base_interface = require("./base-interface");
|
|
34
34
|
const _ToManyInterface = class _ToManyInterface extends import_base_interface.BaseInterface {
|
|
35
35
|
async toValue(str, ctx) {
|
|
36
|
+
if (!str) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
36
39
|
const items = str.split(",");
|
|
37
40
|
const { filterKey, targetCollection, transaction } = ctx;
|
|
38
41
|
const targetInstances = await targetCollection.repository.find({
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/database",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0-alpha",
|
|
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.0
|
|
10
|
-
"@nocobase/utils": "1.0
|
|
9
|
+
"@nocobase/logger": "1.2.0-alpha",
|
|
10
|
+
"@nocobase/utils": "1.2.0-alpha",
|
|
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": "c7dc1f277ef3722df0ec8d5532bcb66322c0fae2"
|
|
42
42
|
}
|