diff --git a/lib/searchkick/relation_indexer.rb b/lib/searchkick/relation_indexer.rb index fc7b4bb..ee4c37a 100644 --- a/lib/searchkick/relation_indexer.rb +++ b/lib/searchkick/relation_indexer.rb @@ -46,7 +46,7 @@ module Searchkick end def batch_completed(batch_id) - Searchkick.with_redis { |r| r.srem(batches_key, batch_id) } + Searchkick.with_redis { |r| r.srem(batches_key, [batch_id]) } end private -- libgit2 0.21.0