Only process summaries for active users (not deactivated or system)

This commit is contained in:
Jorge Manrubia
2025-09-05 13:46:28 +02:00
parent aad61b36bc
commit e15cc80929
2 changed files with 2 additions and 2 deletions
@@ -8,7 +8,7 @@ ActiveRecord::Base.logger = Logger.new(File::NULL)
ApplicationRecord.with_each_tenant do |tenant|
WEEKS_TO_BACKFILL.times do |index|
User.find_each do |user|
User.active.find_each do |user|
user.generate_weekly_highlights(Time.current - index.weeks)
end
end