Commit 5da6794d authored by Mark Chao's avatar Mark Chao

Fix wiki_blob not searchable

type is passed in as string
parent aa3399a7
...@@ -166,7 +166,7 @@ module Elastic ...@@ -166,7 +166,7 @@ module Elastic
} }
end end
options[:project_ids] = repository_ids.map { |id| id.to_s[/\d+/].to_i } if type == :wiki_blob && repository_ids.any? options[:project_ids] = repository_ids.map { |id| id.to_s[/\d+/].to_i } if type.to_sym == :wiki_blob && repository_ids.any?
res = search(query_hash, options) res = search(query_hash, options)
......
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