mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-25 10:57:54 +00:00
update product model
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user