This commit is contained in:
2025-12-17 09:42:38 +03:30
parent 5a5d2271d7
commit 464d8aaa77
2 changed files with 0 additions and 7 deletions
-6
View File
@@ -99,12 +99,6 @@ export class CreateFoodDto {
@ApiPropertyOptional({ example: 0 }) @ApiPropertyOptional({ example: 0 })
discount?: number; discount?: number;
@IsOptional()
@IsNumber()
@Min(0)
@Type(() => Number)
@ApiPropertyOptional({ example: 0 })
score?: number;
@IsOptional() @IsOptional()
@IsBoolean() @IsBoolean()
@@ -52,7 +52,6 @@ export class FoodService {
// new fields // new fields
weekDays: rest.weekDays ?? [0, 1, 2, 3, 4, 5, 6], weekDays: rest.weekDays ?? [0, 1, 2, 3, 4, 5, 6],
mealTypes: rest.mealTypes ?? [], mealTypes: rest.mealTypes ?? [],
score: rest.score ?? null,
restaurant: restaurant, restaurant: restaurant,
category: category, category: category,
}; };