This commit is contained in:
Stone_Red
2022-06-01 11:17:42 +02:00
parent c9a8e8b63c
commit 78001de80f
+2 -1
View File
@@ -41,7 +41,8 @@ export const updatePizza = async (req: Request, res: Response) => {
} else if ( } else if (
typeof req.body.name !== "string" || typeof req.body.name !== "string" ||
typeof req.body.description !== "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({ res.status(HttpStatusCodes.BAD_REQUEST).json({
name: DataType.STRING, name: DataType.STRING,