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.
@@ -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 this.knex(e.entityName).insert(insertObject, this.entity.idMetadata.field.key);
158
+ let result = await insert;
159
159
  newId = result[0];
160
160
  }
161
161
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "0.16.4",
3
+ "version": "0.16.5",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -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*/, this.knex(e.entityName).insert(insertObject, this.entity.idMetadata.field.key)];
309
+ return [4 /*yield*/, insert];
310
310
  case 11:
311
311
  result = _d.sent();
312
312
  newId_1 = result[0];