Updated

app/jobs / close_petitions_job.rb

A
7 lines of codes
1 methods
2.2 complexity/method
4 churn
2.2 complexity
0 duplications
class ClosePetitionsJob < ApplicationJob
  1. ClosePetitionsJob has no descriptive comment
queue_as :high_priority def perform(time)
  1. ClosePetitionsJob#perform doesn't depend on instance state (maybe move it to another class?)
Petition.close_petitions!(time.in_time_zone) end end