Skip to content

Commit

Permalink
Favor object factory for find
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyf committed Mar 8, 2024
1 parent 6f50c15 commit 8c97ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/parsers/bulkrax/bagit_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def write_files
file_set_entries = importerexporter.entries.where(type: file_set_entry_class.to_s)

work_entries[0..limit || total].each do |entry|
record = ActiveFedora::Base.find(entry.identifier)
record = Hyrax.object_factory.find(entry.identifier)
next unless record

bag_entries = [entry]
Expand Down

0 comments on commit 8c97ba6

Please sign in to comment.