Compare commits

..

No commits in common. "d2db62339fdf1cfd00c57ce25c5bda0fde81b94c" and "8f430574ed31a20c0966998827fac87da330aa2b" have entirely different histories.

1 changed files with 1 additions and 9 deletions

View File

@ -134,15 +134,7 @@ export class ItemDto extends BaseStatusDto implements ItemEntity {
}, },
], ],
}) })
@IsArray({ @IsArray()
message: (body) => {
const value = body.value;
if (!value || value?.length === 0) {
return 'Product bundling tidak boleh kosong.';
}
return 'Product bundling tidak sesuai.';
},
})
@ValidateIf((body) => body.item_type.toLowerCase() == ItemType.BUNDLING) @ValidateIf((body) => body.item_type.toLowerCase() == ItemType.BUNDLING)
bundling_items: ItemEntity[]; bundling_items: ItemEntity[];
} }