mirror of
https://codeberg.org/andyscott/ExerciseTracker.git
synced 2024-12-21 11:43:10 -05:00
Remove unneeded variable 'exerciseID'
This commit is contained in:
parent
0484852895
commit
dbb5bcc274
1 changed files with 1 additions and 2 deletions
|
@ -31,8 +31,7 @@ app.get(
|
|||
app.get(
|
||||
"/exercises/:_id",
|
||||
asyncHandler(async (req, res) => {
|
||||
const exerciseId = req.params._id;
|
||||
const exercise = await exercises.findExerciseById(exerciseId);
|
||||
const exercise = await exercises.findExerciseById(req.params._id);
|
||||
if (exercise !== null) {
|
||||
res.status(200).json(exercise);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue