]> cat aescling's git repositories - mastodon.git/commitdiff
Fix missing column in select in mastodon:feeds:build task (#7720)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 4 Jun 2018 02:21:15 +0000 (04:21 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Jun 2018 02:21:15 +0000 (04:21 +0200)
lib/tasks/mastodon.rake

index 8ff29ea9e39feaaf669dbc468e3a72e63e2293fc..de8c0bb8687ef3c941ce010f7fc5b6241a853dc3 100644 (file)
@@ -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