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

This commit is contained in:
Claire 2026-04-15 11:54:38 +02:00 committed by GitHub
parent 75bbf73737
commit f6652caef4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,9 @@ module Chewy
RedisConnection.with do |redis|
redis.pipelined do |pipeline|
@stash.each do |type, ids|
ids = ids&.compact
next if ids.blank?
pipeline.sadd("chewy:queue:#{type.name}", ids)
end
end