Commit e6fb944d authored by Dylan Griffith's avatar Dylan Griffith
Browse files

Dont remove duplicates in Runner.owned_or_shared since its not necessary

parent b698e98adbbc
......@@ -40,7 +40,10 @@ class Runner < ActiveRecord::Base
}
scope :owned_or_shared, -> (project_id) do
union = Gitlab::SQL::Union.new([belonging_to_project(project_id), belonging_to_parent_group_of_project(project_id), shared])
union = Gitlab::SQL::Union.new(
[belonging_to_project(project_id), belonging_to_parent_group_of_project(project_id), shared],
remove_duplicates: false
)
from("(#{union.to_sql}) ci_runners")
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