Skip to content

Commit

Permalink
[O2B-955] Use proper detector label (#1753)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinboulais authored Sep 9, 2024
1 parent fc933d6 commit f6443f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/server/services/run/RunService.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const { flpRoleService } = require('../flp/FlpRoleService.js');
* @property {boolean|{where: object}} [logs] if true, related logs will be fetched alongside the run
*/

const EOR_REASON_CATEGORIES_TO_LOG = ['DETECTORS'];
const EOR_REASON_CATEGORIES_TO_LOG = ['DETECTORS', 'DETECTOR'];

/**
* Create a log stating the detector's quality change
Expand Down Expand Up @@ -547,7 +547,7 @@ const updateEorReasonsOnRun = async (runId, runNumber, userName, eorReasonsPatch
// Index the reason type by its category and title
reasonTypesMap.set(JSON.stringify([reasonType.category, reasonType.title]), reasonType);

if (EOR_REASON_CATEGORIES_TO_LOG.includes(reasonType.category)) {
if (EOR_REASON_CATEGORIES_TO_LOG.includes(reasonType.category.toUpperCase())) {
idsOfReasonTypesToLog.push(reasonType.id);
}
}
Expand Down

0 comments on commit f6443f7

Please sign in to comment.