diff --git a/routes/users.js b/routes/users.js index 13bdb51..313911f 100644 --- a/routes/users.js +++ b/routes/users.js @@ -113,12 +113,10 @@ router.get("/", auth, async (req, res) => { router.put("/update", async (req, res) => { const { id,pricing } = req.body; - console.log("id " + id) if (!id) { return res.status(400).json({ Msg: "Not all fields have been entered." }); } - User.findByIdAndUpdate(id, { pricing: pricing }).then(() => { User.findOne({ _id: id }).then((user) => { res.send(user); @@ -126,12 +124,6 @@ router.put("/update", async (req, res) => { }) }) - - - - - - }) module.exports = router; \ No newline at end of file