diff --git a/src/controllers/category.js b/src/controllers/category.js index bbc3c9f..d6f1cb8 100644 --- a/src/controllers/category.js +++ b/src/controllers/category.js @@ -44,7 +44,6 @@ const createCategory = async (req, res) => { } : defaultCover; - console.log({ finalCover, ...others }); await Categories.create({ ...others, diff --git a/src/controllers/product.js b/src/controllers/product.js index 0adda24..0fd46d1 100644 --- a/src/controllers/product.js +++ b/src/controllers/product.js @@ -1007,7 +1007,6 @@ const getFiltersByCategory = async (req, res) => { const { shop, category } = req.params; // Fetch shop data const shopData = await Shop.findOne({ slug: shop }).select(['_id']); - console.log('Shop Data:', shopData); // Log shop data if (!shopData) { return res .status(404) diff --git a/src/controllers/search.js b/src/controllers/search.js index 70814b3..9d95f43 100644 --- a/src/controllers/search.js +++ b/src/controllers/search.js @@ -14,7 +14,6 @@ const Search = async (req, res) => { const subCatId = subCategory ? await SubCategory.findById(subCategory).select(['_id']) : ''; - console.log(subCatId); const products = await Products.aggregate([ { $match: { diff --git a/src/controllers/user.js b/src/controllers/user.js index f821d04..4541242 100644 --- a/src/controllers/user.js +++ b/src/controllers/user.js @@ -58,7 +58,6 @@ const getUserByAdmin = async (req, res) => { }; const updateUser = async (req, res) => { const user = await getUser(req, res); - console.log(req) const uid = user._id.toString();