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