diff --git a/app/controllers/health_controller.rb b/app/controllers/health_controller.rb index 45e4408248..50265843cc 100644 --- a/app/controllers/health_controller.rb +++ b/app/controllers/health_controller.rb @@ -54,7 +54,7 @@ def monthly_unique_users_graph_data monthly_counts_of_supervisors = LoginActivity.joins("INNER JOIN users ON users.id = login_activities.user_id AND login_activities.user_type = 'User'").where(users: {type: "Supervisor"}, success: true).group_by_month(:created_at, format: "%b %Y").distinct.count(:user_id) monthly_counts_of_casa_admins = LoginActivity.joins("INNER JOIN users ON users.id = login_activities.user_id AND login_activities.user_type = 'User'").where(users: {type: "CasaAdmin"}, success: true).group_by_month(:created_at, format: "%b %Y").distinct.count(:user_id) monthly_logged_counts_of_volunteers = CaseContact.joins(:supervisor_volunteer).group_by_month(:created_at, format: "%b %Y").distinct.count(:creator_id) - + monthly_line_graph_combined_data = first_day_of_last_12_months.map do |month| [ month,