Commit 7c7877b5 authored by Francisco Lopez's avatar Francisco Lopez

Small renaming

parent a2babf32
...@@ -63,11 +63,11 @@ module API ...@@ -63,11 +63,11 @@ module API
forked_project_link: :forked_from_project, forked_project_link: :forked_from_project,
forked_from_project: [:route, :forks, namespace: :route, tags: :taggings]) forked_from_project: [:route, :forks, namespace: :route, tags: :taggings])
projects = reorder_projects(projects) projects = reorder_projects(projects)
paginated_projects = paginate(projects) projects = paginate(projects)
projects_with_fork = paginated_projects + paginated_projects.map(&:forked_from_project).compact projects_with_fork = projects + projects.map(&:forked_from_project).compact
::Projects::BatchForksCountService.new(projects_with_fork).refresh_cache ::Projects::BatchForksCountService.new(projects_with_fork).refresh_cache
::Projects::BatchOpenIssuesCountService.new(paginated_projects).refresh_cache ::Projects::BatchOpenIssuesCountService.new(projects).refresh_cache
paginated_projects projects
end end
def present_groups(params, groups) def present_groups(params, groups)
......
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