@punks/backend-entity-manager 0.0.432 → 0.0.434

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/esm/index.js CHANGED
@@ -275,11 +275,10 @@ class EntitySerializer {
275
275
  const entity = (definition.autoColumns ? { ...record } : {});
276
276
  for (const column of definition.columns) {
277
277
  const columnName = normalizeSheetColumn(column.name);
278
- if (!(columnName in record))
278
+ if (!(column.name in record))
279
279
  continue;
280
280
  if (column.parseAction) {
281
281
  column.parseAction(record[columnName], entity);
282
- delete record[column.name];
283
282
  continue;
284
283
  }
285
284
  if (typeof column.selector === "function") {
@@ -291,7 +290,9 @@ class EntitySerializer {
291
290
  .map((x) => applyModifiers(x, column.modifiers))
292
291
  .filter((x) => isValidValue(x))
293
292
  : applyModifiers(parsedColumn, column.modifiers);
294
- delete record[column.name];
293
+ console.log("name", column.name);
294
+ console.log("entity", entity);
295
+ // delete entity[column.name]
295
296
  }
296
297
  const validationErrors = [];
297
298
  for (const column of definition.columns) {