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 | 26 | raise Searchkick::Error, "Active Job not found" |
27 | 27 | end |
28 | 28 | |
29 | + # always pass routing in case record is deleted | |
30 | + # before the async job runs | |
29 | 31 | if record.respond_to?(:search_routing) |
30 | 32 | routing = record.search_routing |
31 | 33 | end | ... | ... |