Skip to content

Commit

Permalink
Raw document upload broken: fixed to access Solr via blacklight_config
Browse files Browse the repository at this point in the history
  • Loading branch information
mephillips-durham authored Oct 31, 2023
1 parent 0f5a47e commit c478c28
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 c478c28

Please sign in to comment.