Commit ee7bd7f6 authored by Nick Thomas's avatar Nick Thomas

Fix commit search on some elasticsearch indexes

parent 6cad4b0b
......@@ -55,7 +55,7 @@ module Elastic
commits = response.map do |result|
sha = result["_source"]["commit"]["sha"]
project_id = result["_source"]["commit"]["rid"]
project_id = result["_source"]["commit"]["rid"].to_i
projects[project_id].try(:commit, sha)
end.compact
......
---
title: Fix commit search on some elasticsearch indexes
merge_request: 1745
author:
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