Update app.rb

This commit is contained in:
Muhsin Keloth
2025-06-12 14:18:26 +05:30
parent 1622ba1b7f
commit 7e672e5c71
+3 -5
View File
@@ -68,12 +68,10 @@ class Integrations::App
config = INTEGRATION_CONFIGS[params[:id]]
return true unless config
checks = [
config[:feature_flag] ? account.feature_enabled?(config[:feature_flag]) : true,
config[:config_key] ? GlobalConfigService.load(config[:config_key], nil).present? : true
]
feature_enabled = config[:feature_flag].nil? || account.feature_enabled?(config[:feature_flag])
config_present = config[:config_key].nil? || GlobalConfigService.load(config[:config_key], nil).present?
checks.all?
feature_enabled && config_present
end
def build_linear_action