Skip to content

Commit 059edc4

Browse files
committed
fix error
1 parent 27b3c3d commit 059edc4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/domain/dtos/filters/RunFilterDto.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,8 @@ exports.RunFilterDto = Joi.object({
131131
const runsCollectionFilters = [dataPassIds, simulationPassIds, lhcPeriodIds].filter(({ length } = {}) => length >= 1);
132132

133133
if (runsCollectionFilters.length !== 1 || runsCollectionFilters[0].length !== 1) {
134-
return helpers.error('any.invalid', {
135-
message: 'Filtering by detector not-bad fraction is allowed only with exactly one of: ' +
136-
'dataPassIds, simulationPassIds, lhcPeriodIds with exactly one ID.',
137-
});
134+
return helpers.message('Filtering by detector not-bad fraction is allowed only with exactly one of: ' +
135+
'dataPassIds, simulationPassIds, lhcPeriodIds with exactly one ID.');
138136
}
139137

140138
return detectorsQcObj;

0 commit comments

Comments
 (0)