@mikro-orm/knex 6.1.5-dev.5 → 6.1.5
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/AbstractSqlDriver.js +5 -3
- package/package.json +3 -3
package/AbstractSqlDriver.js
CHANGED
|
@@ -1085,9 +1085,11 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
|
|
|
1085
1085
|
orderBy.push({ [`${alias}.${prop.fixedOrderColumn}`]: core_1.QueryOrder.ASC });
|
|
1086
1086
|
}
|
|
1087
1087
|
if (propOrderBy) {
|
|
1088
|
-
core_1.Utils.
|
|
1089
|
-
|
|
1090
|
-
|
|
1088
|
+
for (const item of core_1.Utils.asArray(propOrderBy)) {
|
|
1089
|
+
core_1.Utils.keys(item).forEach(field => {
|
|
1090
|
+
orderBy.push({ [`${propAlias}.${field}`]: item[field] });
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1091
1093
|
}
|
|
1092
1094
|
if (hint.children) {
|
|
1093
1095
|
const buildJoinedPropsOrderBy = this.buildJoinedPropsOrderBy(qb, meta2, hint.children, options, path);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/knex",
|
|
3
|
-
"version": "6.1.5
|
|
3
|
+
"version": "6.1.5",
|
|
4
4
|
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"sqlstring": "2.3.3"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@mikro-orm/core": "^6.1.
|
|
66
|
+
"@mikro-orm/core": "^6.1.5"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "6.
|
|
69
|
+
"@mikro-orm/core": "^6.0.0"
|
|
70
70
|
}
|
|
71
71
|
}
|