Skip to content

Commit

Permalink
hotfix: better error handling when calling Fugu API
Browse files Browse the repository at this point in the history
  • Loading branch information
shafy committed May 21, 2022
1 parent ad750dc commit 23ed7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/fugu_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.track(name, properties = {})
}

begin
Faraday.post(ENV.fetch("FUGU_URLd", nil)) do |req|
Faraday.post(ENV.fetch("FUGU_URL", nil)) do |req|
req.headers["Content-Type"] = "application/json"
req.body = body.to_json
end
Expand Down

0 comments on commit 23ed7ef

Please sign in to comment.