From 9f98a23335a891ad019bb47cbcdfea7aa50df353 Mon Sep 17 00:00:00 2001 From: George Raduta Date: Mon, 26 Oct 2026 16:56:32 +0100 Subject: [PATCH] Pass the detector ids to the QC summary when filtering runs by detector QC --- lib/usecases/run/GetAllRunsUseCase.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)