@mondart/nestjs-common-module 1.1.23 → 1.1.24

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.
@@ -235,11 +235,8 @@ class CoreCrudService {
235
235
  return { id };
236
236
  });
237
237
  }
238
- else if (this.isArrayOfObjectId(dtoObject[item])) {
239
- relatedItem = dtoObject[item];
240
- }
241
238
  else {
242
- throw new common_1.BadRequestException(`property: ${item} must be an array of number or array of objectIds`);
239
+ relatedItem = dtoObject[item];
243
240
  }
244
241
  dtoObject[item] = relatedItem;
245
242
  });