diff --git a/lib/searchkick/record_indexer.rb b/lib/searchkick/record_indexer.rb index e0eed0e..4f84bee 100644 --- a/lib/searchkick/record_indexer.rb +++ b/lib/searchkick/record_indexer.rb @@ -26,6 +26,8 @@ module Searchkick raise Searchkick::Error, "Active Job not found" end + # always pass routing in case record is deleted + # before the async job runs if record.respond_to?(:search_routing) routing = record.search_routing end -- libgit2 0.21.0