Commit dad35d62 authored by Dylan Griffith's avatar Dylan Griffith

Remove redundant scopes in Ci::RegisterJobService#builds_for_group_runner

parent e98438d4
...@@ -90,7 +90,7 @@ module Ci ...@@ -90,7 +90,7 @@ module Ci
def builds_for_group_runner def builds_for_group_runner
hierarchy_groups = Gitlab::GroupHierarchy.new(runner.groups).base_and_descendants hierarchy_groups = Gitlab::GroupHierarchy.new(runner.groups).base_and_descendants
projects = Project.where(namespace_id: hierarchy_groups).without_deleted.with_builds_enabled projects = Project.where(namespace_id: hierarchy_groups)
new_builds.where(project: projects.without_deleted.with_builds_enabled).order('created_at ASC') new_builds.where(project: projects.without_deleted.with_builds_enabled).order('created_at ASC')
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment