diff --git a/app/models/trends/statuses.rb b/app/models/trends/statuses.rb index c0bc0c06a90665..76bc5320a81fe2 100644 --- a/app/models/trends/statuses.rb +++ b/app/models/trends/statuses.rb @@ -76,7 +76,7 @@ def refresh(at_time = Time.now.utc) # Now that all trends have up-to-date scores, and all the ones below the threshold have # been removed, we can recalculate their positions - query(10).refresh(at_time) + query.limit(10).refresh(at_time) end def request_review