about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-06-04 04:21:15 +0200
committerGitHub <noreply@github.com>2018-06-04 04:21:15 +0200
commitc7405fda11e0f19db0f3641720d3feb4e52bb8b7 (patch)
treeff8167cb8e15ba5268b695f8fc13a0d380d36ac6
parente18390cfe6f5f0eb55abafe072b14b7fa123e808 (diff)
Fix missing column in select in mastodon:feeds:build task (#7720)
-rw-r--r--lib/tasks/mastodon.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake
index 8ff29ea9e..de8c0bb86 100644
--- a/lib/tasks/mastodon.rake
+++ b/lib/tasks/mastodon.rake
@@ -561,7 +561,7 @@ namespace :mastodon do
 
     desc 'Generates home timelines for users who logged in in the past two weeks'
     task build: :environment do
-      User.active.select(:account_id).find_in_batches do |users|
+      User.active.select(:id, :account_id).find_in_batches do |users|
         RegenerationWorker.push_bulk(users.map(&:account_id))
       end
     end