diff options
Diffstat (limited to 'app/finders/ci/jobs_finder.rb')
-rw-r--r-- | app/finders/ci/jobs_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/ci/jobs_finder.rb b/app/finders/ci/jobs_finder.rb index 5fc9c0e1778..152eb271694 100644 --- a/app/finders/ci/jobs_finder.rb +++ b/app/finders/ci/jobs_finder.rb @@ -76,7 +76,7 @@ module Ci unknown_statuses = params[:scope] - ::CommitStatus::AVAILABLE_STATUSES raise ArgumentError, 'Scope contains invalid value(s)' unless unknown_statuses.empty? - builds.where(status: params[:scope]) # rubocop: disable CodeReuse/ActiveRecord + builds.with_statuses(params[:scope]) end def jobs_by_type(relation, type) |