Skip to content

Commit

Permalink
Featured Works MIA After Reindex
Browse files Browse the repository at this point in the history
Stop removing featured records if the item is missing from the index. If an app is being reindexed OR solr is having a bad day, we shouldn't destroy database records, just skip them.
  • Loading branch information
orangewolf authored and tamsin johnson committed Apr 11, 2022
1 parent 4c1a99a commit b852ade
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/models/featured_work_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def featured_works
@works = FeaturedWork.all
add_solr_document_to_works
@works = @works.reject do |work|
work.destroy if work.presenter.blank?
work.presenter.blank?
end
end
Expand Down

0 comments on commit b852ade

Please sign in to comment.