Skip to content

Commit

Permalink
Update lib/server/services/qualityControlFlag/QcFlagService.js
Browse files Browse the repository at this point in the history
Co-authored-by: George Raduta <[email protected]>
  • Loading branch information
xsalonx and graduta authored Aug 1, 2024
1 parent 17658ba commit 4179a74
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/server/services/qualityControlFlag/QcFlagService.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,13 @@ class QcFlagService {
const runSummary = summary[runNumber];
const runFlagsAndVerifications = flagsAndVerifications[runNumber];

runFlagsAndVerifications.flagsIds = new Set([...runFlagsAndVerifications?.flagsIds ?? [], ...flagsIds]);
const runFlagsIds = flagsAndVerifications[runNumber]?.flagsIds ?? [];
const runVerifiedFlagsIds = flagsAndVerifications[runNumber]?.verifiedFlagsIds ?? [];

flagsAndVerifications[runNumber] = {
flagsIds: new Set([...runFlagsIds, ...flagsIds]),
verifiedFlagsIds: new Set([ runVerifiedFlagsIds, ...verifiedFlagsIds])

Check failure on line 640 in lib/server/services/qualityControlFlag/QcFlagService.js

View workflow job for this annotation

GitHub Actions / linter

There should be no space after '['

Check failure on line 640 in lib/server/services/qualityControlFlag/QcFlagService.js

View workflow job for this annotation

GitHub Actions / linter

Missing trailing comma
};
runFlagsAndVerifications.verifiedFlagsIds = new Set([...runFlagsAndVerifications?.verifiedFlagsIds ?? [], ...verifiedFlagsIds]);

if (bad) {
Expand Down

0 comments on commit 4179a74

Please sign in to comment.