food
This commit is contained in:
@@ -99,12 +99,6 @@ export class CreateFoodDto {
|
||||
@ApiPropertyOptional({ example: 0 })
|
||||
discount?: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
@Min(0)
|
||||
@Type(() => Number)
|
||||
@ApiPropertyOptional({ example: 0 })
|
||||
score?: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
|
||||
@@ -52,7 +52,6 @@ export class FoodService {
|
||||
// new fields
|
||||
weekDays: rest.weekDays ?? [0, 1, 2, 3, 4, 5, 6],
|
||||
mealTypes: rest.mealTypes ?? [],
|
||||
score: rest.score ?? null,
|
||||
restaurant: restaurant,
|
||||
category: category,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user