refactor: comment 404 response (topic model) for implementation purpose

This commit is contained in:
elangptra 2024-10-02 13:20:02 +07:00
parent 30ffed17be
commit 4915928969

View File

@ -176,9 +176,9 @@ export const getCompletedTopicsBySection = async (req, res) => {
],
});
if (!completedLevels.length) {
return response(404, null, "No completed topics found", res);
}
// if (!completedLevels.length) {
// return response(404, null, "No completed topics found", res);
// }
const completedSections = {};
@ -215,6 +215,10 @@ export const getCompletedTopicsBySection = async (req, res) => {
const result = Object.values(completedSections);
// if (!result.length) {
// return response(404, null, "No completed topics for Level 6 found", res);
// }
response(
200,
result,