Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
rawOrlando committed Nov 28, 2023
1 parent 6a5fe85 commit a3e78ce
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@
ids = Hyrax::SolrService.query("{!field f=id}#{work.id}", fl: "member_ids_ssim").flat_map { |x| x.fetch("member_ids_ssim", []) }
ids = [ids]
ids = ids.reject(&:blank?)
ids = ids.empty? "id:NEVER_USE_THIS_ID" : ids
if ids.empty?:
ids = "id:NEVER_USE_THIS_ID"
end
expect(solr_params[:fq]).to eq ["-" + Hyrax::SolrQueryService.new.with_ids(ids: ids).build]
end
end
Expand Down

0 comments on commit a3e78ce

Please sign in to comment.