diff --git a/src/modules/item-related/item/infrastructure/dto/item.dto.ts b/src/modules/item-related/item/infrastructure/dto/item.dto.ts index 250d3a8..65a6b88 100644 --- a/src/modules/item-related/item/infrastructure/dto/item.dto.ts +++ b/src/modules/item-related/item/infrastructure/dto/item.dto.ts @@ -108,7 +108,7 @@ export class ItemDto extends BaseStatusDto implements ItemEntity { example: 60, }) @IsNumber() - @ValidateIf((body) => body.item_type.toLowerCase() == ItemType.WAHANA) + @ValidateIf((body) => body.item_type.toLowerCase() == ItemType.WAHANA && body.limit_type.toLowerCase() != LimitType.NO_LIMIT) limit_value: number; @ApiProperty({ type: Boolean, required: false })