This commit is contained in:
2025-12-13 11:14:18 +03:30
parent 3eb6b889a4
commit c25a5afe01
80 changed files with 440 additions and 190 deletions
@@ -11,4 +11,3 @@ export class ChangeStatusDto {
})
status: ReviewStatus;
}
+6 -7
View File
@@ -21,20 +21,20 @@ export class UpdateReviewDto {
@IsOptional()
@IsArray()
@IsEnum(PositivePoint, { each: true })
@ApiPropertyOptional({
description: 'Positive points about the food',
@ApiPropertyOptional({
description: 'Positive points about the food',
enum: PositivePoint,
isArray: true
isArray: true,
})
positivePoints?: PositivePoint[];
@IsOptional()
@IsArray()
@IsEnum(NegativePoint, { each: true })
@ApiPropertyOptional({
description: 'Negative points about the food',
@ApiPropertyOptional({
description: 'Negative points about the food',
enum: NegativePoint,
isArray: true
isArray: true,
})
negativePoints?: NegativePoint[];
@@ -43,4 +43,3 @@ export class UpdateReviewDto {
@ApiPropertyOptional({ description: 'Review status (admin only)', enum: ReviewStatus })
status?: ReviewStatus;
}