Skip to content

Commit

Permalink
Merge pull request #77 from ReflectionsProjections/dev/alex/events-fix
Browse files Browse the repository at this point in the history
event service fixed
  • Loading branch information
AydanPirani authored Jun 11, 2024
2 parents a4e70a5 + aa6bc15 commit 3422482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/events/events-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ eventsRouter.get("/", async (req, res, next) => {
eventsRouter.delete("/:EVENTID", async (req, res, next) => {
const eventId = req.params.EVENTID;
try {
await Database.EVENTS.findByIdAndDelete({ eventId: eventId });
await Database.EVENTS.findOneAndDelete({ eventId: eventId });

return res.sendStatus(StatusCodes.NO_CONTENT);
} catch (error) {
Expand Down

0 comments on commit 3422482

Please sign in to comment.