@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/cjs/index.js +4 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +4 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -290,11 +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
|
-
if (!(
|
|
293
|
+
if (!(column.name in record))
|
|
294
294
|
continue;
|
|
295
295
|
if (column.parseAction) {
|
|
296
296
|
column.parseAction(record[columnName], entity);
|
|
297
|
-
delete record[column.name];
|
|
298
297
|
continue;
|
|
299
298
|
}
|
|
300
299
|
if (typeof column.selector === "function") {
|
|
@@ -306,7 +305,9 @@ class EntitySerializer {
|
|
|
306
305
|
.map((x) => applyModifiers(x, column.modifiers))
|
|
307
306
|
.filter((x) => isValidValue(x))
|
|
308
307
|
: applyModifiers(parsedColumn, column.modifiers);
|
|
309
|
-
|
|
308
|
+
console.log("name", column.name);
|
|
309
|
+
console.log("entity", entity);
|
|
310
|
+
// delete entity[column.name]
|
|
310
311
|
}
|
|
311
312
|
const validationErrors = [];
|
|
312
313
|
for (const column of definition.columns) {
|