Updated

app/jobs/webhook/status / refresh_job.rb

A
10 lines of codes
1 methods
5.1 complexity/method
2 churn
5.1 complexity
0 duplications
class Webhook::Status::RefreshJob < ApplicationJob
  1. Webhook::Status::RefreshJob has no descriptive comment
self.queue_adapter = :good_job def perform
  1. Webhook::Status::RefreshJob#perform doesn't depend on instance state (maybe move it to another class?)
Webhook.active.find_each do |webhook| next if webhook.valid_url? webhook.inactive! end end end