Skip to content

Commit

Permalink
i149 - fix timing issue that cause child ocr search bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaLMoore committed Sep 21, 2022
1 parent 14ff3b9 commit 128a9ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/jobs/bulkrax/create_relationships_job_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ def create_relationships
collection_parent_collection_child unless child_records[:collections].empty?
else
work_parent_work_child unless child_records[:works].empty?
child_records[:works].each do |work|
# reindex filesets to update solr's is_page_of_ssim
work.file_sets.each(&:update_index)
end
# OVERRIDE: Bulkrax v.3.0
# set the first child's thumbnail as the thumbnail for the parent
::SetDefaultParentThumbnailJob.set(wait: 10.minutes)
Expand Down

0 comments on commit 128a9ef

Please sign in to comment.