@punks/backend-entity-manager 0.0.422 → 0.0.424

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/dist/cjs/index.js CHANGED
@@ -279,8 +279,10 @@ class EntitySerializer {
279
279
  keysTransform: backendCore.ExcelKeyTransform.Lower,
280
280
  dateColumns: dateColumns.map((x) => x.name),
281
281
  });
282
- console.log(records, "parsed");
283
- return records.map((x, i) => this.convertSheetRecord(x, definition, i));
282
+ console.log("records", records);
283
+ return Array.isArray(records)
284
+ ? records.map((x, i) => this.convertSheetRecord(x, definition, i))
285
+ : Object.values(records).flatMap((x, i) => this.convertSheetRecord(x, definition, i));
284
286
  }
285
287
  convertSheetRecord(record, definition, rowIndex) {
286
288
  if (definition.sheet?.useTypeColumn &&