Fix invalid arguments being passed to Redis in custom Chewy strategy (#38684)

This commit is contained in:
Claire
2026-04-15 09:54:38 +00:00
committed by GitHub
parent 75bbf73737
commit f6652caef4
+3
View File
@@ -17,6 +17,9 @@ module Chewy
RedisConnection.with do |redis| RedisConnection.with do |redis|
redis.pipelined do |pipeline| redis.pipelined do |pipeline|
@stash.each do |type, ids| @stash.each do |type, ids|
ids = ids&.compact
next if ids.blank?
pipeline.sadd("chewy:queue:#{type.name}", ids) pipeline.sadd("chewy:queue:#{type.name}", ids)
end end
end end