Skip to content

Commit

Permalink
redis 5 returns bool instead of int for sadd and srem https://github.…
Browse files Browse the repository at this point in the history
  • Loading branch information
katiefillingim committed May 7, 2024
1 parent 2642ebd commit 4e853c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/searchkick/relation_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def batches_left
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
Expand Down Expand Up @@ -134,7 +134,7 @@ def full_reindex_async(relation)
end

def batch_job(class_name, batch_id, record_ids)
Searchkick.with_redis { |r| r.sadd(batches_key, batch_id) }
Searchkick.with_redis { |r| r.sadd?(batches_key, batch_id) }
Searchkick::BulkReindexJob.perform_later(
class_name: class_name,
index_name: index.name,
Expand Down
2 changes: 1 addition & 1 deletion lib/searchkick/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Searchkick
VERSION = "5.0.4.pre.everfi.1.0.1"
VERSION = "5.0.4.pre.everfi.1.1.0"
end

0 comments on commit 4e853c3

Please sign in to comment.