Skip to content

Commit

Permalink
save parent object to establish relationships
Browse files Browse the repository at this point in the history
This fixes the reason why works weren't forming relationships with other works
  • Loading branch information
Shana Moore committed Mar 20, 2024
1 parent 6d2cc56 commit f6a0fb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/factories/bulkrax/valkyrie_object_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def self.add_child_to_parent_work(parent:, child:)
return true if parent.member_ids.include?(child.id)

parent.member_ids << child.id
parent.save
end

def self.add_resource_to_collection(collection:, resource:, user:)
Expand Down

0 comments on commit f6a0fb9

Please sign in to comment.