mirror of
https://github.com/mastodon/mastodon.git
synced 2026-08-12 12:47:06 -05:00
Fix invalid arguments being passed to Redis in custom Chewy strategy (#38684)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user