@punks/backend-entity-manager 0.0.160 → 0.0.161

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
@@ -182,7 +182,12 @@ class EntitySerializer {
182
182
  }
183
183
  const entity = {};
184
184
  for (const column of definition.columns) {
185
- entity[column.selector] = this.parseColumnValue(record, column);
185
+ if (column.parseAction) {
186
+ column.parseAction(record[column.name], entity);
187
+ }
188
+ else {
189
+ entity[column.selector] = this.parseColumnValue(record, column);
190
+ }
186
191
  }
187
192
  const idField = definition.columns.find((x) => x.idColumn || x.selector === "id");
188
193
  return {