@nocobase/database 2.0.11 → 2.0.12

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.
@@ -149,6 +149,11 @@ const _EagerLoadingTree = class _EagerLoadingTree {
149
149
  const { sourceKey } = association;
150
150
  pushAttribute(eagerLoadingTreeParent, sourceKey);
151
151
  }
152
+ if (associationType == "BelongsToArray") {
153
+ const { foreignKey, targetKey } = association;
154
+ pushAttribute(eagerLoadingTreeParent, foreignKey);
155
+ pushAttribute(child, targetKey);
156
+ }
152
157
  eagerLoadingTreeParent.children.push(child);
153
158
  if (include.include) {
154
159
  traverseIncludeOption(include.include, child);
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nocobase/database",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
7
7
  "license": "Apache-2.0",
8
8
  "dependencies": {
9
- "@nocobase/logger": "2.0.11",
10
- "@nocobase/utils": "2.0.11",
9
+ "@nocobase/logger": "2.0.12",
10
+ "@nocobase/utils": "2.0.12",
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": "657733e68b31cbb788f8b1b7c4926383c96b5889"
41
+ "gitHead": "a96acd22a9b0744b567617e3a1f1d42cb7f72368"
42
42
  }