demarches-normaliennes/app/jobs/administrateurs/activate_before_expiration_job.rb
2018-10-03 12:15:48 +02:00

7 lines
210 B
Ruby

class Administrateurs::ActivateBeforeExpirationJob < ApplicationJob
queue_as :cron
def perform(*args)
Administrateur.inactive.where(created_at: 3.days.ago.all_day).each(&:remind_invitation!)
end
end