From 4e853c391a104a9cbaef1ed74a64bed199ad3df6 Mon Sep 17 00:00:00 2001 From: katiefillingim <67967370+katiefillingim@users.noreply.github.com> Date: Mon, 6 May 2024 11:30:04 -0400 Subject: [PATCH] redis 5 returns bool instead of int for sadd and srem https://github.com/redis/redis-rb/blob/4.x/CHANGELOG.md#480 --- lib/searchkick/relation_indexer.rb | 4 ++-- lib/searchkick/version.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/searchkick/relation_indexer.rb b/lib/searchkick/relation_indexer.rb index a90c04dd..0afd1601 100644 --- a/lib/searchkick/relation_indexer.rb +++ b/lib/searchkick/relation_indexer.rb @@ -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 @@ -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, diff --git a/lib/searchkick/version.rb b/lib/searchkick/version.rb index 6c3a8c8c..956e68cc 100644 --- a/lib/searchkick/version.rb +++ b/lib/searchkick/version.rb @@ -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