Skip to content

Commit

Permalink
Merge pull request #2986 from mephillips-durham/raw-document-upload-c…
Browse files Browse the repository at this point in the history
…orrection

Raw document upload broken: fixed to access Solr via blacklight_config
  • Loading branch information
corylown committed Jun 28, 2024
2 parents 32bfa28 + c478c28 commit a8cb834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/spotlight/solr_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def update

data = solr_documents

repository.connection.update params: { commitWithin: 500 }, data: data.to_json, headers: { 'Content-Type' => 'application/json' } unless data.empty?
@exhibit.blacklight_config.repository.connection.update params: { commitWithin: 500 }, data: data.to_json, headers: { 'Content-Type' => 'application/json' } unless data.empty?

if params[:resources_json_upload]
redirect_back fallback_location: exhibit_resources_path(@exhibit)
Expand Down

0 comments on commit a8cb834

Please sign in to comment.