diff --git a/app/reports/preservation_versions.rb b/app/reports/preservation_versions.rb index 3a2766a76..982f2c731 100644 --- a/app/reports/preservation_versions.rb +++ b/app/reports/preservation_versions.rb @@ -11,7 +11,7 @@ def self.report def report # Objects with a closed version, indicating they have been accessioned. - data = RepositoryObject.joins(:head_version).where.not(last_closed_version: nil).pluck(:external_identifier, :version) + data = RepositoryObject.joins(:last_closed_version).where.not(last_closed_version: nil).pluck(:external_identifier, :version) progress_bar = tty_progress_bar(data.length) progress_bar.start