diff --git a/lib/zizia/hyrax/hyrax_record_importer.rb b/lib/zizia/hyrax/hyrax_record_importer.rb index 659dede..5377e8f 100644 --- a/lib/zizia/hyrax/hyrax_record_importer.rb +++ b/lib/zizia/hyrax/hyrax_record_importer.rb @@ -188,7 +188,7 @@ def find_file_path(filename) private def update_for(existing_record:, update_record:) - if existing_record.class == Collection + if update_record.object_type == :collection collection_updater(existing_record: existing_record, update_record: update_record) else curation_concern_updater(existing_record: existing_record, update_record: update_record)