Skip to content

Commit

Permalink
fixed incorrect variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitst05 committed Sep 9, 2023
1 parent c1f4bfd commit 024b6d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/timetable.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async function deleteTimetable(req, res) {
const { timetableId } = req.params;
try {
await deleteTimetableById(timetableId);
res.json({ res: `Deleted timetable with ID ${infrastructureId}` });
res.json({ res: `Deleted timetable with ID ${timetableId}` });
} catch (error) {
logger.error("Error while deleting", error);
res.status(500).json({ error: "Error while deleting from DB" });
Expand Down

0 comments on commit 024b6d3

Please sign in to comment.