DEV: Fix linting

This commit is contained in:
Loïc Guitaut 2024-03-04 16:34:01 +01:00 committed by Loïc Guitaut
parent 4f737df97e
commit 0badc2bc22
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ after_initialize do
is_access_token = setting_name == :chat_integration_telegram_access_token is_access_token = setting_name == :chat_integration_telegram_access_token
if (is_enabled_setting || is_access_token) if (is_enabled_setting || is_access_token)
enabled = is_enabled_setting ? new_value == true : SiteSetting.chat_integration_telegram_enabled enabled =
is_enabled_setting ? new_value == true : SiteSetting.chat_integration_telegram_enabled
if enabled && SiteSetting.chat_integration_telegram_access_token.present? if enabled && SiteSetting.chat_integration_telegram_access_token.present?
Scheduler::Defer.later("Setup Telegram Webhook") do Scheduler::Defer.later("Setup Telegram Webhook") do