From 36b77ea08695bc60300add50126a4332eea55e15 Mon Sep 17 00:00:00 2001 From: EdwardLinS <63514282+EdwardLinS@users.noreply.github.com> Date: Sun, 21 Apr 2024 23:24:19 -0700 Subject: [PATCH] Run prettier formatter to fix linter issues --- backend/controllers/categoryController.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/controllers/categoryController.js b/backend/controllers/categoryController.js index 327c9fa..3bfe150 100644 --- a/backend/controllers/categoryController.js +++ b/backend/controllers/categoryController.js @@ -108,7 +108,7 @@ export const deleteTitleToCategoryById = async (req, res) => { } // Delete title to the category's items array - const index = category.items.indexOf(deletedTitle) + const index = category.items.indexOf(deletedTitle); console.log("hihi"); if (index > -1) { @@ -122,8 +122,7 @@ export const deleteTitleToCategoryById = async (req, res) => { } else { res.status(404).json({ message: "Title not found" }); } - } catch (error) { res.status(500).json({ error: error.message }); } -}; \ No newline at end of file +};