summaryrefslogtreecommitdiff
path: root/lib/gitlab/checks/lfs_integrity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/checks/lfs_integrity.rb')
-rw-r--r--lib/gitlab/checks/lfs_integrity.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/checks/lfs_integrity.rb b/lib/gitlab/checks/lfs_integrity.rb
index f7276a380dc..f0e5773ec3c 100644
--- a/lib/gitlab/checks/lfs_integrity.rb
+++ b/lib/gitlab/checks/lfs_integrity.rb
@@ -15,8 +15,7 @@ module Gitlab
return false unless new_lfs_pointers.present?
- existing_count = @project.lfs_storage_project
- .lfs_objects
+ existing_count = @project.all_lfs_objects
.where(oid: new_lfs_pointers.map(&:lfs_oid))
.count