From 09f9cd4f63e3e654d8ff2aab331b9cf5b7f3fba1 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sat, 6 Mar 2021 19:25:06 -0500 Subject: [PATCH] fixes to delete operation --- src/api/board.ins/routes/root.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/board.ins/routes/root.ts b/src/api/board.ins/routes/root.ts index e8e18df..6296f2f 100644 --- a/src/api/board.ins/routes/root.ts +++ b/src/api/board.ins/routes/root.ts @@ -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.` }); }); @@ -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.` }); }); @@ -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.` }); });