diff options
author | Akihiko Odaki (@fn_aki@pawoo.net) <akihiko.odaki.4i@stu.hosei.ac.jp> | 2017-06-30 20:39:42 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-30 13:39:42 +0200 |
commit | 7362469d8956d5f972283aadd4157631aa66b085 (patch) | |
tree | 9c307674ae813f1fdc4ac4d909a976246faaeb35 /app/services | |
parent | 1273fbf86ea3bd906e687a33e1f62c99f100ecca (diff) |
Do not raise an error if PrecomputeFeed could not find any status (#4015)
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/precompute_feed_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/precompute_feed_service.rb b/app/services/precompute_feed_service.rb index e2f6ff0cb..a32ba1dae 100644 --- a/app/services/precompute_feed_service.rb +++ b/app/services/precompute_feed_service.rb @@ -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 |