Skip to content

Commit

Permalink
🐛 Make solr_service_decorator work for proprietor
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkkwang committed Jan 8, 2024
1 parent a168574 commit 7f940fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ GIT

GIT
remote: https://github.com/samvera/hyrax.git
revision: 8f0bcdbf56743e4b8da36eb4ec657f37f30582a2
revision: f25c6f8960ec85fc460ba48f9a0ec4802d5751f7
branch: double_combo
specs:
hyrax (5.0.0.rc2)
Expand Down
5 changes: 1 addition & 4 deletions lib/hyrax/solr_service_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ def count(query, args = {})
def reset!
@old_service.reset! if @old_service

# The proprietor page runs through this as well but valkyrie_index is not defined
if defined?(valkyrie_index)
valkyrie_index.connection = valkyrie_index.default_connection
end
Hyrax.index_adapter&.reset!
end
end
end
Expand Down

0 comments on commit 7f940fe

Please sign in to comment.