mirror of
https://github.com/GithubOrgProjectPiza/server.git
synced 2026-09-04 08:36:10 +02:00
Fix
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user