From 024b6d31a9460f7cebf76394735c54d4d0dddd44 Mon Sep 17 00:00:00 2001 From: sumitst05 Date: Sat, 9 Sep 2023 16:23:26 +0530 Subject: [PATCH] fixed incorrect variable name --- controller/timetable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/timetable.js b/controller/timetable.js index ce7b948..bafa5c3 100644 --- a/controller/timetable.js +++ b/controller/timetable.js @@ -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" });