diff options
author | Francisco Lopez <fjlopez@gitlab.com> | 2017-11-24 17:37:02 +0100 |
---|---|---|
committer | Francisco Lopez <fjlopez@gitlab.com> | 2017-12-01 18:32:12 +0100 |
commit | c85f9c5b1d320f7a6f75e3d08bbafd2fb20d3f58 (patch) | |
tree | caad702f39ef47d1a2ec710eb93b776ecd4910ef /lib/api/groups.rb | |
parent | 7c7877b54dfb0a07bf128102226e338463654431 (diff) | |
download | gitlab-ce-c85f9c5b1d320f7a6f75e3d08bbafd2fb20d3f58.tar.gz |
Code review comments applied
Diffstat (limited to 'lib/api/groups.rb')
-rw-r--r-- | lib/api/groups.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index 05443329a32..83c7898150a 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -64,8 +64,8 @@ module API forked_from_project: [:route, :forks, namespace: :route, tags: :taggings]) projects = reorder_projects(projects) projects = paginate(projects) - projects_with_fork = projects + projects.map(&:forked_from_project).compact - ::Projects::BatchForksCountService.new(projects_with_fork).refresh_cache + projects_with_forks = projects + projects.map(&:forked_from_project).compact + ::Projects::BatchForksCountService.new(projects_with_forks).refresh_cache ::Projects::BatchOpenIssuesCountService.new(projects).refresh_cache projects end |