Gestione Ordini: evaso...
This commit is contained in:
@@ -254,7 +254,7 @@ router.delete('/:id', authenticate, (req, res) => {
|
||||
});
|
||||
|
||||
} else {
|
||||
Todo.findByIdAndRemove(id).then((todo) => {
|
||||
Todo.deleteOne({_id: id}).then((todo) => {
|
||||
if (!todo) {
|
||||
return res.status(404).send();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user