From 75ee9a6ad2d43b16b1aa1ba3c061a90936f3fcea Mon Sep 17 00:00:00 2001 From: Benson Arafat Date: Mon, 11 Sep 2023 16:32:33 +0100 Subject: [PATCH] Update Status name --- src/controllers/main.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/main.controller.js b/src/controllers/main.controller.js index e5dbc4b..54c453e 100644 --- a/src/controllers/main.controller.js +++ b/src/controllers/main.controller.js @@ -106,7 +106,7 @@ mainController.addItems = async (req, res) => { let obj = {}; obj[type] = req.body.item; const response = await State.findOneAndUpdate({_id: req.params.id}, { $push: obj }); - res.status(200).json({message: "State Updated" , data : response}); + res.status(200).json({message: "Item Added" , data : response}); } catch (_) { res.status(500).json({message : "Oops, there was an error"}); }