¿Qué fallo tiene el siguiente fragmento al eliminar un contacto?
router.delete('/:id', async (req, res) => {
await Contacto.findByIdAndRemove(req.params.id);
});
¿Qué fallo tiene el siguiente fragmento al eliminar un contacto?
router.delete('/:id', async (req, res) => {
await Contacto.findByIdAndRemove(req.params.id);
});