Commit d2b2d298 authored by Guillaume Chauvel's avatar Guillaume Chauvel

Fix sum of LFS objects size with identical value

Changelog: fixed
MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/70610
parent 0702f2e3
......@@ -70,7 +70,7 @@ class ProjectStatistics < ApplicationRecord
end
def update_lfs_objects_size
self.lfs_objects_size = project.lfs_objects.sum(:size)
self.lfs_objects_size = LfsObject.joins(:lfs_objects_projects).where(lfs_objects_projects: { project_id: project.id }).sum(:size)
end
def update_uploads_size
......
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