From 959f7447c3c568bd980d7fb5c2f4ac6b186bfd01 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Thu, 12 Jun 2025 12:56:29 +0530 Subject: [PATCH] Update app.rb --- app/models/integrations/app.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/integrations/app.rb b/app/models/integrations/app.rb index 03d110cec..b8fd61827 100644 --- a/app/models/integrations/app.rb +++ b/app/models/integrations/app.rb @@ -40,7 +40,8 @@ class Integrations::App def action case params[:id] when 'slack' - "#{params[:action]}&client_id=#{ENV.fetch('SLACK_CLIENT_ID', nil)}&redirect_uri=#{self.class.slack_integration_url}" + client_id = GlobalConfigService.load('SLACK_CLIENT_ID', nil) + "#{params[:action]}&client_id=#{client_id}&redirect_uri=#{self.class.slack_integration_url}" when 'linear' build_linear_action when 'github'