chore: General fixes and clean up (#1169)

This commit is contained in:
Sojan Jose 2020-08-25 23:04:02 +05:30 committed by GitHub
parent 124e43b477
commit 2193de9853
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 111 additions and 121 deletions

View file

@ -1,6 +1,8 @@
class Webhooks::Trigger
def self.execute(url, payload)
RestClient.post(url, payload.to_json, { content_type: :json, accept: :json })
rescue RestClient::NotFound => e
Rails.logger.info "invalid url #{url} : #{e.message}"
rescue StandardError => e
Raven.capture_exception(e)
end