Skip to content

Commit 6660370

Browse files
committed
fix
1 parent a64932b commit 6660370

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/server/services/dataPasses/DataPassService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class DataPassService {
190190

191191
return dataSource.transaction(async () => {
192192
const dataPass = await this.getOneOrFail(identifier);
193-
if (dataPass.pdpBeamType !== PdpBeamType.PROTON_PROTON) {
193+
if (!dataPass.pdpBeamTypes.includes(PdpBeamType.PROTON_PROTON)) {
194194
throw new BadParameterError(`Cannot mark ${dataPass.name} as skimmable.`
195195
+ ' Only production for PROTON_PROTON runs can be marked as skimmable');
196196
}

test/api/simulationPasses.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const LHC23k6c = {
2020
id: 1,
2121
name: 'LHC23k6c',
2222
jiraId: 'SIMTICKET-1',
23-
pdpBeamTypes: ['pp'],
23+
pdpBeamTypes: ['PbPB', 'pp'],
2424
description: 'Some Random general purpose for LHC23k6c',
2525
pwg: 'PWGX2',
2626
requestedEventsCount: 1345555,

test/lib/server/services/simulationPasses/SimulationPassesService.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const LHC23k6c = {
2121
id: 1,
2222
name: 'LHC23k6c',
2323
jiraId: 'SIMTICKET-1',
24-
pdpBeamTypes: ['pp'],
24+
pdpBeamTypes: ['PbPB', 'pp'],
2525
description: 'Some Random general purpose for LHC23k6c',
2626
pwg: 'PWGX2',
2727
requestedEventsCount: 1345555,

0 commit comments

Comments
 (0)