@punks/backend-entity-manager 0.0.433 → 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/cjs/index.js CHANGED
@@ -290,12 +290,10 @@ class EntitySerializer {
290
290
  const entity = (definition.autoColumns ? { ...record } : {});
291
291
  for (const column of definition.columns) {
292
292
  const columnName = normalizeSheetColumn(column.name);
293
- console.log(columnName, column.name, record);
294
293
  if (!(column.name in record))
295
294
  continue;
296
295
  if (column.parseAction) {
297
296
  column.parseAction(record[columnName], entity);
298
- delete record[column.name];
299
297
  continue;
300
298
  }
301
299
  if (typeof column.selector === "function") {
@@ -307,7 +305,9 @@ class EntitySerializer {
307
305
  .map((x) => applyModifiers(x, column.modifiers))
308
306
  .filter((x) => isValidValue(x))
309
307
  : applyModifiers(parsedColumn, column.modifiers);
310
- delete record[column.name];
308
+ console.log("name", column.name);
309
+ console.log("entity", entity);
310
+ // delete entity[column.name]
311
311
  }
312
312
  const validationErrors = [];
313
313
  for (const column of definition.columns) {