Do not raise an error if PrecomputeFeed could not find any status (#4015)
This commit is contained in:
parent
1273fbf86e
commit
7362469d89
2 changed files with 6 additions and 1 deletions
|
@ -16,7 +16,7 @@ class PrecomputeFeedService < BaseService
|
|||
pairs = statuses.reverse_each.map(&method(:process_status))
|
||||
|
||||
redis.pipelined do
|
||||
redis.zadd(account_home_key, pairs)
|
||||
redis.zadd(account_home_key, pairs) if pairs.any?
|
||||
redis.del("account:#{@account.id}:regeneration")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue