food
This commit is contained in:
@@ -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,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user