From b613c877455e67bd7eb82837cbcd98fd82e2fb07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B5=ED=9D=AC=20=EA=B9=80?= Date: Sun, 19 Jan 2025 18:02:00 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/category.js | 1 - src/controllers/product.js | 1 - src/controllers/search.js | 1 - src/controllers/user.js | 1 - 4 files changed, 4 deletions(-) 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();