Commit 9155938dd1b86b7a9c6c0a4e84102e40fca370e6
1 parent
fdbea5e4
Exists in
master
and in
18 other branches
Added comment [skip ci]
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
lib/searchkick/record_indexer.rb
@@ -26,6 +26,8 @@ module Searchkick | @@ -26,6 +26,8 @@ module Searchkick | ||
26 | raise Searchkick::Error, "Active Job not found" | 26 | raise Searchkick::Error, "Active Job not found" |
27 | end | 27 | end |
28 | 28 | ||
29 | + # always pass routing in case record is deleted | ||
30 | + # before the async job runs | ||
29 | if record.respond_to?(:search_routing) | 31 | if record.respond_to?(:search_routing) |
30 | routing = record.search_routing | 32 | routing = record.search_routing |
31 | end | 33 | end |