From 8007844fa81bc06599719720762e903f12c0b6bd Mon Sep 17 00:00:00 2001 From: elangptra Date: Wed, 2 Oct 2024 13:20:27 +0700 Subject: [PATCH] refactor: comment 404 response (topic model) for implementation purpose --- controllers/contentControllers/topic.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/contentControllers/topic.js b/controllers/contentControllers/topic.js index 71be894..16f41d2 100644 --- a/controllers/contentControllers/topic.js +++ b/controllers/contentControllers/topic.js @@ -40,9 +40,9 @@ export const getTopicBySectionId = async (req, res) => { where: { ID_SECTION: sectionId }, }); - if (!topics || topics.length === 0) { - return response(404, null, "No topics found for this section", res); - } + // if (!topics || topics.length === 0) { + // return response(404, null, "No topics found for this section", res); + // } response(200, topics, "Success", res); } catch (error) {