@nocobase/database 1.6.0-alpha.16 → 1.6.0-alpha.18
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.
- package/lib/repository.js +3 -0
- package/package.json +4 -4
package/lib/repository.js
CHANGED
|
@@ -255,6 +255,9 @@ const _Repository = class _Repository {
|
|
|
255
255
|
await eagerLoadingTree.load(transaction2);
|
|
256
256
|
rows = eagerLoadingTree.root.instances;
|
|
257
257
|
} else {
|
|
258
|
+
if (opts.where && model.primaryKeyAttributes.length === 0) {
|
|
259
|
+
opts.where = import_sequelize.Utils.mapWhereFieldNames(opts.where, model);
|
|
260
|
+
}
|
|
258
261
|
rows = await model.findAll({
|
|
259
262
|
...opts,
|
|
260
263
|
transaction: transaction2
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/database",
|
|
3
|
-
"version": "1.6.0-alpha.
|
|
3
|
+
"version": "1.6.0-alpha.18",
|
|
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.6.0-alpha.
|
|
10
|
-
"@nocobase/utils": "1.6.0-alpha.
|
|
9
|
+
"@nocobase/logger": "1.6.0-alpha.18",
|
|
10
|
+
"@nocobase/utils": "1.6.0-alpha.18",
|
|
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": "db361bebe9ed4a5ca19fc14183fe4576443568ef"
|
|
42
42
|
}
|