Skip to content

Commit

Permalink
Update asset_resource_indexer.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
ekemeyer authored Aug 27, 2024
1 parent 1854cd7 commit ac3fcf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/indexers/asset_resource_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def to_solr
AnnotationTypesService.new.select_all_options.each do |type|
# Use the ID defined in the AnnotationType service
type_id = type[1]
index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?
index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).blank?
end

#Indexing for search by batch_id
Expand Down

0 comments on commit ac3fcf2

Please sign in to comment.