From ee7aff61e30e8f0ec4358a87e3274579c790b701 Mon Sep 17 00:00:00 2001 From: SeghirOumo Date: Fri, 9 Aug 2024 14:54:11 +0200 Subject: [PATCH] Aftral[#90] removed status filter --- backend/web/server/plugins/aftral-lms/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/web/server/plugins/aftral-lms/user.js b/backend/web/server/plugins/aftral-lms/user.js index 3bd79856a4..3d18af4d2b 100644 --- a/backend/web/server/plugins/aftral-lms/user.js +++ b/backend/web/server/plugins/aftral-lms/user.js @@ -40,7 +40,7 @@ const getTraineeResources = async (userId, params, data) => { const sequences = await getRelatedDocuments(Sequence, sequenceIds) const resourceIds = getIdsFromChildren(sequences) - const resources = await Resource.find({ _id: { $in: resourceIds }, achievement_status: BLOCK_STATUS_CURRENT }) + const resources = await Resource.find({ _id: { $in: resourceIds } }) return resources }