PATCH request gives 200 but not updating database (MongoDB)
I spent hours debugging a PATCH request that looked perfect but was not updating the database. this is the code
app.patch(async (req, res) => {
let user = await User.findById(req.params.id);
i