diff --git a/lib/usecases/run/GetAllRunsUseCase.js b/lib/usecases/run/GetAllRunsUseCase.js index bf3723bd8f..012d8ea638 100644 --- a/lib/usecases/run/GetAllRunsUseCase.js +++ b/lib/usecases/run/GetAllRunsUseCase.js @@ -410,9 +410,9 @@ class GetAllRunsUseCase { const { mcReproducibleAsNotBad } = detectorsQcNotBadFraction; delete detectorsQcNotBadFraction.mcReproducibleAsNotBad; - const detectorsId = Object.keys(detectorsQcNotBadFraction).map((id) => parseInt(id.slice(1), 10)); - if (detectorsId.length > 0) { - const scope = { dataPassId, simulationPassId, lhcPeriodId, detectorsId }; + const detectorIds = Object.keys(detectorsQcNotBadFraction).map((id) => parseInt(id.slice(1), 10)); + if (detectorIds.length > 0) { + const scope = { dataPassId, simulationPassId, lhcPeriodId, detectorIds }; const qcSummary = await qcFlagSummaryService.getSummary(scope, { mcReproducibleAsNotBad }); const runNumbers = Object.entries(qcSummary)