DEV: Explicitly register problem check (#191)

This commit is contained in:
Ted Johansson 2024-04-03 14:17:10 +08:00 committed by GitHub
parent f0275f1591
commit 05a0a32a47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -19,8 +19,11 @@ require_relative "lib/discourse_chat_integration/provider/slack/slack_enabled_se
after_initialize do
require_relative "app/initializers/discourse_chat_integration"
require_relative "app/services/problem_check/channel_errors"
register_problem_check ProblemCheck::ChannelErrors
on(:site_setting_changed) do |setting_name, old_value, new_value|
is_enabled_setting = setting_name == :chat_integration_telegram_enabled
is_access_token = setting_name == :chat_integration_telegram_access_token