refactor for redundant code

This commit is contained in:
Mann Patel
2025-04-21 01:01:58 -06:00
parent 8347689f6c
commit 5228bf73c9
14 changed files with 726 additions and 692 deletions

View File

@@ -391,9 +391,9 @@ exports.getProductWithPagination = async (req, res) => {
}
};
exports.removeProduct = async (req, res) => {
exports.removeAnyProduct = async (req, res) => {
const { id } = req.params;
console.log(id);
try {
const [result] = await db.execute(
`DELETE FROM Product WHERE ProductID = ?`,