@punks/backend-entity-manager 0.0.352 → 0.0.353

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
@@ -249,7 +249,7 @@ class EntitySerializer {
249
249
  const validationErrors = [];
250
250
  for (const column of definition.columns) {
251
251
  for (const validator of column.validators ?? []) {
252
- const result = validator.fn((item) => item[column.selector]);
252
+ const result = validator.fn(entity);
253
253
  if (!result.isValid) {
254
254
  validationErrors.push({
255
255
  errorCode: validator.key,