Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-02 18:07:40 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-02 18:07:40 +0300
commitd83c512077b9eb391ce1f59349fc7bacc3615e18 (patch)
tree1864abd445bddfe750358b054d43b52a13675e17 /lib/banzai
parenta72a9af092c1bfcf9f8024d59c11cf222f07e1e7 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/banzai')
-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