summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-02 15:07:40 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-02 15:07:40 +0000
commitd83c512077b9eb391ce1f59349fc7bacc3615e18 (patch)
tree1864abd445bddfe750358b054d43b52a13675e17 /lib
parenta72a9af092c1bfcf9f8024d59c11cf222f07e1e7 (diff)
downloadgitlab-ce-d83c512077b9eb391ce1f59349fc7bacc3615e18.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r--lib/banzai/reference_parser/base_parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/reference_parser/base_parser.rb b/lib/banzai/reference_parser/base_parser.rb
index 8419769085a..9160c0e14cf 100644
--- a/lib/banzai/reference_parser/base_parser.rb
+++ b/lib/banzai/reference_parser/base_parser.rb
@@ -177,7 +177,7 @@ module Banzai
collection.where(id: to_query).each { |row| cache[row.id] = row }
end
- cache.values_at(*ids).compact
+ ids.uniq.map { |id| cache[id] }.compact
else
collection.where(id: ids)
end