fixes to delete operation
parent
0289632f50
commit
09f9cd4f63
|
@ -173,7 +173,7 @@ export default class Root extends Route {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
await executiveOrder.delete();
|
await this.server.client.db.ExecutiveOrder.deleteOne({ oID: req.params.id });
|
||||||
|
|
||||||
res.status(200).json({ message: `Executive Order with ID ${req.params.id} deleted.` });
|
res.status(200).json({ message: `Executive Order with ID ${req.params.id} deleted.` });
|
||||||
});
|
});
|
||||||
|
@ -219,7 +219,7 @@ export default class Root extends Route {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
await motion.delete();
|
await this.server.client.db.Motion.deleteOne({ oID: req.params.id });
|
||||||
|
|
||||||
res.status(200).json({ message: `Motion with ID ${req.params.id} deleted.` });
|
res.status(200).json({ message: `Motion with ID ${req.params.id} deleted.` });
|
||||||
});
|
});
|
||||||
|
@ -264,7 +264,7 @@ export default class Root extends Route {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
await proclamation.delete();
|
await this.server.client.db.Proclamation.deleteOne({ oID: req.params.id });
|
||||||
|
|
||||||
res.status(200).json({ message: `Proclamation with ID ${req.params.id} deleted.` });
|
res.status(200).json({ message: `Proclamation with ID ${req.params.id} deleted.` });
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue