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