diff --git a/app/jobs/cache/currently_hacking_job.rb b/app/jobs/cache/currently_hacking_job.rb index dd2f8c3..74f2e7b 100644 --- a/app/jobs/cache/currently_hacking_job.rb +++ b/app/jobs/cache/currently_hacking_job.rb @@ -15,7 +15,7 @@ class Cache::CurrentlyHackingJob < Cache::ActivityJob .where("time > ?", 5.minutes.ago.to_f) .select("DISTINCT ON (user_id) user_id, project, time, users.*") .order("user_id, time DESC") - .includes(user: :project_repo_mappings) + .includes(user: [ :project_repo_mappings, :email_addresses ]) .index_by(&:user_id) users = recent_heartbeats.values.map(&:user)