Updated

app/workers / webhook_worker.rb

A
11 lines of codes
1 methods
1.0 complexity/method
2 churn
1.0 complexity
0 duplications
class WebhookWorker
  1. WebhookWorker has no descriptive comment
include Sidekiq::Worker def perform(url, payload)
  1. WebhookWorker#perform doesn't depend on instance state (maybe move it to another class?)
Faraday.post( url, payload, {'Content-Type': 'application/json'} ) end end