Fix merge_into_home

This commit is contained in:
noellabo 2022-12-15 02:39:25 +09:00
parent 8df4c78281
commit dd28e7d99f

View file

@ -141,7 +141,7 @@ class FeedManager
if redis.zcard(timeline_key) >= FeedManager::MAX_ITEMS / 4
oldest_home_score = redis.zrange(timeline_key, 0, 0).first.to_i
query = query.where('id >= ?', oldest_home_score)
query = query.where('statuses.id >= ?', oldest_home_score)
end
statuses = query.to_a