remult 3.3.10 → 3.3.11

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.
@@ -329,7 +329,7 @@ export class ArrayEntityDataProvider {
329
329
  let idf = this.entity.idMetadata.field;
330
330
  if (!(idf instanceof CompoundIdField) &&
331
331
  idf.valueConverter.fieldTypeInDb === 'autoincrement') {
332
- j[idf.key] = 1;
332
+ j[names.$dbNameOf(idf)] = 1;
333
333
  for (const row of this.rows()) {
334
334
  if (row[idf.key] >= j[idf.key])
335
335
  j[idf.key] = row[idf.key] + 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "3.3.10",
3
+ "version": "3.3.11",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
5
  "homepage": "https://remult.dev",
6
6
  "repository": {
@@ -567,7 +567,7 @@ var ArrayEntityDataProvider = /** @class */ (function () {
567
567
  idf = this.entity.idMetadata.field;
568
568
  if (!(idf instanceof CompoundIdField_js_1.CompoundIdField) &&
569
569
  idf.valueConverter.fieldTypeInDb === 'autoincrement') {
570
- j[idf.key] = 1;
570
+ j[names.$dbNameOf(idf)] = 1;
571
571
  try {
572
572
  for (_a = tslib_1.__values(this.rows()), _b = _a.next(); !_b.done; _b = _a.next()) {
573
573
  row = _b.value;