Skip to content

Commit

Permalink
deleted old PUT /tasks/custom/:id route
Browse files Browse the repository at this point in the history
  • Loading branch information
amberchow8 committed Jan 17, 2024
1 parent beccfb9 commit 8f91a64
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/api/src/routes/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@ router.get("/custom/:id", (req, res, next) => {
.catch(next);
});

router.put("/custom/:id", async (req, res, next) => {
CustomizedBattery.findOneAndUpdate({ _id: req.params["id"] }, req.body, {
upsert: true,
new: true,
})
.then((task) => res.json(task))
.catch(next);
});

router.post("/:id/custom", (req, res, next) => {
const studyId = req.query.studyId;
req.body.name;
Expand Down

0 comments on commit 8f91a64

Please sign in to comment.