Update force_regenerate_feeds.rake

This commit is contained in:
admin 2021-01-16 18:39:31 +00:00
parent 8b0f566e4f
commit 2e8b7125d9

View File

@ -6,7 +6,9 @@ namespace :gabsocial do
desc 'Re-generate home feeds for all users (run after any migrations)' desc 'Re-generate home feeds for all users (run after any migrations)'
task :force_regenerate_feeds => :environment do task :force_regenerate_feeds => :environment do
Account.select(:id, :username).all.each do |a| Account.select(:id, :username).all.each do |a|
Redis.current.set("account:#{a.id}:regeneration", true) Redis.current.with do |conn|
conn.set("account:#{a.id}:regeneration", true)
end
puts(a.username) puts(a.username)
end end
end end