remult 0.16.4 → 0.16.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/esm/remult-knex/index.js +1 -1
- package/package.json +1 -1
- package/remult-knex/index.js +1 -1
package/esm/remult-knex/index.js
CHANGED
|
@@ -155,7 +155,7 @@ class KnexEntityDataProvider {
|
|
|
155
155
|
if (isAutoIncrement(this.entity.idMetadata.field)) {
|
|
156
156
|
let newId;
|
|
157
157
|
if (this.knex.client.config.client === 'mysql2') {
|
|
158
|
-
let result = await
|
|
158
|
+
let result = await insert;
|
|
159
159
|
newId = result[0];
|
|
160
160
|
}
|
|
161
161
|
else {
|
package/package.json
CHANGED
package/remult-knex/index.js
CHANGED
|
@@ -306,7 +306,7 @@ var KnexEntityDataProvider = /** @class */ (function () {
|
|
|
306
306
|
insert = this.knex(e.entityName).insert(insertObject);
|
|
307
307
|
if (!remult3_1.isAutoIncrement(this.entity.idMetadata.field)) return [3 /*break*/, 15];
|
|
308
308
|
if (!(this.knex.client.config.client === 'mysql2')) return [3 /*break*/, 12];
|
|
309
|
-
return [4 /*yield*/,
|
|
309
|
+
return [4 /*yield*/, insert];
|
|
310
310
|
case 11:
|
|
311
311
|
result = _d.sent();
|
|
312
312
|
newId_1 = result[0];
|