From c7405fda11e0f19db0f3641720d3feb4e52bb8b7 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 4 Jun 2018 04:21:15 +0200 Subject: [PATCH] Fix missing column in select in mastodon:feeds:build task (#7720) --- lib/tasks/mastodon.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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