From 78001de80f5f855445956b4414245856906fa952 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Wed, 1 Jun 2022 11:17:42 +0200 Subject: [PATCH] Fix --- src/controller/pizzas.controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,