Remove redundant scopes in Ci::RegisterJobService#builds_for_group_runner

This commit is contained in:
Dylan Griffith 2018-04-30 17:14:39 +04:00
parent e98438d4ef
commit dad35d6284
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ module Ci
def builds_for_group_runner
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')
end