@mikro-orm/knex 6.2.2-dev.15 → 6.2.2-dev.16
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 +1 -1
- package/package.json +2 -2
package/AbstractSqlDriver.js
CHANGED
|
@@ -122,7 +122,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
|
|
|
122
122
|
if (res instanceof query_1.QueryBuilder) {
|
|
123
123
|
return this.wrapVirtualExpressionInSubquery(meta, res.getFormattedQuery(), where, options, type);
|
|
124
124
|
}
|
|
125
|
-
if (core_1.Utils.isObject(res)) {
|
|
125
|
+
if (!(res instanceof Promise) && core_1.Utils.isObject(res)) {
|
|
126
126
|
const { sql, bindings } = res.toSQL();
|
|
127
127
|
const query = this.platform.formatQuery(sql, bindings);
|
|
128
128
|
return this.wrapVirtualExpressionInSubquery(meta, query, where, options, type);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/knex",
|
|
3
|
-
"version": "6.2.2-dev.
|
|
3
|
+
"version": "6.2.2-dev.16",
|
|
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",
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"@mikro-orm/core": "^6.2.1"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "6.2.2-dev.
|
|
69
|
+
"@mikro-orm/core": "6.2.2-dev.16"
|
|
70
70
|
}
|
|
71
71
|
}
|