Commit a6276c731edc69d02dac59777b81c9bff70d8cf3

Authored by Bobby McDonald
Committed by GitHub
1 parent 32e0c999
Exists in master

Resolve redis 5.0 deprecation warning (#1589)

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/searchkick/relation_indexer.rb
... ... @@ -134,7 +134,7 @@ module Searchkick
134 134 end
135 135  
136 136 def batch_job(class_name, batch_id, record_ids)
137   - Searchkick.with_redis { |r| r.sadd(batches_key, batch_id) }
  137 + Searchkick.with_redis { |r| r.sadd(batches_key, [batch_id]) }
138 138 Searchkick::BulkReindexJob.perform_later(
139 139 class_name: class_name,
140 140 index_name: index.name,
... ...