refactor(api): remove extraneous lookup (#51210)

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
This commit is contained in:
Oliver Eyton-Williams
2023-08-11 13:18:34 +02:00
committed by GitHub
parent b5c86d4b9c
commit 019d7f0d97
+6 -6
View File
@@ -59,12 +59,12 @@ export default function bootCertificate(app) {
export function getFallbackFullStackDate(completedChallenges, completedDate) {
var chalIds = [
certTypeIdMap[certTypes.respWebDesign],
certTypeIdMap[certTypes.jsAlgoDataStruct],
certTypeIdMap[certTypes.frontEndDevLibsId],
certTypeIdMap[certTypes.dataVis2018],
certTypeIdMap[certTypes.apisMicroservicesId],
certTypeIdMap[certTypes.legacyInfosecQaId]
respWebDesignId,
jsAlgoDataStructId,
frontEndDevLibsId,
dataVis2018Id,
apisMicroservicesId,
legacyInfosecQaId
];
const latestCertDate = completedChallenges