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(
|
app.get(
|
||||||
"/exercises/:_id",
|
"/exercises/:_id",
|
||||||
asyncHandler(async (req, res) => {
|
asyncHandler(async (req, res) => {
|
||||||
const exerciseId = req.params._id;
|
const exercise = await exercises.findExerciseById(req.params._id);
|
||||||
const exercise = await exercises.findExerciseById(exerciseId);
|
|
||||||
if (exercise !== null) {
|
if (exercise !== null) {
|
||||||
res.status(200).json(exercise);
|
res.status(200).json(exercise);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue