Commit 15b10c34 authored by Dylan Griffith's avatar Dylan Griffith

Dont remove duplicates in Runner.owned_or_shared since its not necessary

parent b8abe0c9
...@@ -40,7 +40,10 @@ module Ci ...@@ -40,7 +40,10 @@ module Ci
} }
scope :owned_or_shared, -> (project_id) do 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") from("(#{union.to_sql}) ci_runners")
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