diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-04-05 14:31:07 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-04-05 14:31:07 +0200 |
commit | c901ae77d43bc76afc5c927c82b9b75609fa3a58 (patch) | |
tree | 41ccfe01da595433ef64e229a767ac62b7adfd92 /app/controllers/admin/dashboard_controller.rb | |
parent | 39b9a0619ab4ba68ed429152153cf0dbbfcd5a5a (diff) | |
parent | 117f6638d0c402162c60915c7b8946489f1e89df (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/controllers/admin/dashboard_controller.rb')
-rw-r--r-- | app/controllers/admin/dashboard_controller.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/controllers/admin/dashboard_controller.rb b/app/controllers/admin/dashboard_controller.rb index e87dd076f..9e921fb95 100644 --- a/app/controllers/admin/dashboard_controller.rb +++ b/app/controllers/admin/dashboard_controller.rb @@ -3,13 +3,8 @@ require 'sidekiq/api' module Admin class DashboardController < BaseController - SIDEKIQ_QUEUES = %w(default push mailers pull scheduler).freeze - def index - missing_queues = Sidekiq::ProcessSet.new.reduce(SIDEKIQ_QUEUES) { |queues, process| queues - process['queues'] } - - flash.now[:alert] = I18n.t('admin.dashboard.misconfigured_sidekiq_alert', queues: missing_queues.join(', ')) unless missing_queues.empty? - + @system_checks = Admin::SystemCheck.perform @users_count = User.count @pending_users_count = User.pending.count @registrations_week = Redis.current.get("activity:accounts:local:#{current_week}") || 0 |