From b36dd750a720ea3e5c55447bb76b626d7037b082 Mon Sep 17 00:00:00 2001 From: Guillaume Lagorce Date: Mon, 18 Nov 2024 22:03:29 +0100 Subject: [PATCH] fix(scoring): do not filter asked challenges Asked challenges are required and shall not be filtered by any mean. Filtering based on the current locale of the user can led to errors. This was occurring when user switched its locale during same certification course. --- .../evaluation/domain/services/scoring/scoring-v3.js | 1 - 1 file changed, 1 deletion(-) diff --git a/api/src/certification/evaluation/domain/services/scoring/scoring-v3.js b/api/src/certification/evaluation/domain/services/scoring/scoring-v3.js index d63c819f200..848b3c3e855 100644 --- a/api/src/certification/evaluation/domain/services/scoring/scoring-v3.js +++ b/api/src/certification/evaluation/domain/services/scoring/scoring-v3.js @@ -69,7 +69,6 @@ export const handleV3CertificationScoring = async ({ ); const askedChallenges = await challengeRepository.getMany( certificationChallengesForScoring.map((challengeForScoring) => challengeForScoring.id), - locale, ); _restoreCalibrationValues(certificationChallengesForScoring, askedChallenges);