diff --git a/app/models/bot/alegre.rb b/app/models/bot/alegre.rb index 362fb444f..53a9b087b 100644 --- a/app/models/bot/alegre.rb +++ b/app/models/bot/alegre.rb @@ -479,7 +479,7 @@ def self.request_api(method, path, params = {}, query_or_body = 'body', retries ActiveRecord::Base.clear_active_connections! ActiveRecord::Base.connection.close end - uri = URI(CheckConfig.get('alegre_host') + path+ '?token=' + CheckConfig.get('alegre_token')) + uri = URI(CheckConfig.get('alegre_host') + path) klass = 'Net::HTTP::' + method.capitalize request = klass.constantize.new(uri.path, 'Content-Type' => 'application/json') if query_or_body == 'query'