update product model

This commit is contained in:
hannathkadher
2024-12-20 14:16:23 +04:00
parent 61c17c2e95
commit c78eeff7e6
4 changed files with 81 additions and 8 deletions
@@ -12,7 +12,7 @@ import { ProductItemModelModificationDto } from '../product-item-model-dtos';
export class UpdateProductModelDto extends BaseProductModelDto {
@ApiProperty({
description: 'Number of products in the model',
description: 'Number of products to be modified in the model',
example: 3,
})
@IsNotEmpty()
@@ -27,5 +27,5 @@ export class UpdateProductModelDto extends BaseProductModelDto {
@ArrayNotEmpty()
@ValidateNested({ each: true })
@Type(() => ProductItemModelModificationDto)
items: ProductItemModelModificationDto[];
items: ProductItemModelModificationDto;
}