Commit 5ea39b1c authored by Gabriel Mazetto's avatar Gabriel Mazetto

Geo lib should list more than one secondary nodes

parent 4bab5728
...@@ -13,7 +13,7 @@ module Gitlab ...@@ -13,7 +13,7 @@ module Gitlab
end end
def self.secondary_nodes def self.secondary_nodes
RequestStore.store[:geo_secondary_nodes] ||= GeoNode.find_by(primary: false) RequestStore.store[:geo_secondary_nodes] ||= GeoNode.where(primary: false)
end end
def self.enabled? def self.enabled?
......
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