Skip to content

Commit

Permalink
Fixing sunspot reindex task
Browse files Browse the repository at this point in the history
  • Loading branch information
pnabutovsky committed Aug 20, 2021
1 parent 080c658 commit 6f13399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/sunspot.rake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace :sunspot do
desc 'Reindex all indexeable models'
task reindex: :wait do
puts 'Reindexing Solr...'
location_service = Location.new(true)
location_service = LocationService.new(true)
[Child, Incident, TracingRequest, Trace].each { |m| batch_reindex(m, 500, location_service) }
puts 'Solr successfully reindexed'
end
Expand Down

0 comments on commit 6f13399

Please sign in to comment.