Gestione Ordini: evaso...

This commit is contained in:
Surya Paolo
2023-12-13 19:17:53 +01:00
parent a2bd4f6e97
commit fcdd826c54
11 changed files with 314 additions and 125 deletions

View File

@@ -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();
}