title: how to update an image of an user using multer and exress
body: <p>router.patch(&quot;/id&quot;, upload.single(&quot;updateImage&quot;), async (req, res) =&gt; {</p>
  <pre><code>const updated_user = await User.findByIdAndUpdate(req.params.id, {
      profile_pic:req.file.path
  },{new:true})
  return res.status(201).send(updated_user)
  </code></pre>
  <p>})</p>