Fix invalid arguments being passed to Redis in custom Chewy strategy (#38684)
This commit is contained in:
parent
75bbf73737
commit
f6652caef4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user