From bcaca9d3d3f4d840e86b558578fe175062dc5ef8 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Thu, 12 Jun 2025 12:54:08 +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..32b3fc36d 100644 --- a/app/models/integrations/app.rb +++ b/app/models/integrations/app.rb @@ -53,7 +53,8 @@ class Integrations::App def active?(account) case params[:id] when 'slack' - GlobalConfigService.load('SLACK_CLIENT_SECRET', nil).present? + client_id = GlobalConfigService.load('SLACK_CLIENT_ID', nil) + "#{params[:action]}&client_id=#{client_id}&redirect_uri=#{self.class.slack_integration_url}" when 'linear' GlobalConfigService.load('LINEAR_CLIENT_ID', nil).present? when 'shopify'