¿Cuál es el problema con el siguiente código al actualizar un contacto?
router.put('/:id', async (req, res) => {
await Contacto.findByIdAndUpdate(req.params.id, req.body);
});
¿Cuál es el problema con el siguiente código al actualizar un contacto?
router.put('/:id', async (req, res) => {
await Contacto.findByIdAndUpdate(req.params.id, req.body);
});