diff --git a/src/controller/pizzas.controller.ts b/src/controller/pizzas.controller.ts index a3db829..83d6eca 100644 --- a/src/controller/pizzas.controller.ts +++ b/src/controller/pizzas.controller.ts @@ -41,7 +41,8 @@ export const updatePizza = async (req: Request, res: Response) => { } else if ( typeof req.body.name !== "string" || typeof req.body.description !== "string" || - typeof req.body.restaurantId !== "number" + typeof req.body.restaurantId !== "number" || + typeof req.body.price !== "number" ) { res.status(HttpStatusCodes.BAD_REQUEST).json({ name: DataType.STRING,