Skip to content

Commit

Permalink
Run prettier formatter to fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardLinS committed Apr 22, 2024
1 parent d835303 commit 36b77ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/controllers/categoryController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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 });
}
};
};

0 comments on commit 36b77ea

Please sign in to comment.