app/jobs/bulkrax/create_relationships_job.rb in bulkrax-3.3.0 vs app/jobs/bulkrax/create_relationships_job.rb in bulkrax-3.3.1
- old
+ new
@@ -31,10 +31,10 @@
# Whether the @base_entry is the parent or the child in the relationship is determined by the presence of a
# parent_identifier or child_identifier param. For example, if a parent_identifier is passed, we know @base_entry
# is the child in the relationship, and vice versa if a child_identifier is passed.
def perform(parent_identifier:, importer_run_id:) # rubocop:disable Metrics/AbcSize
pending_relationships = Bulkrax::PendingRelationship.find_each.select do |rel|
- rel.bulkrax_importer_run_id == importer_run_id && rel.parent_id == parent_identifier
+ rel.importer_run_id == importer_run_id && rel.parent_id == parent_identifier
end.sort_by(&:order)
@importer_run_id = importer_run_id
@parent_entry, @parent_record = find_record(parent_identifier, importer_run_id)
@child_records = { works: [], collections: [] }