Skip to content

Commit

Permalink
remove token passing
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney committed Sep 21, 2023
1 parent 7a8537c commit 8f4be56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/bot/alegre.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 8f4be56

Please sign in to comment.