demarches-normaliennes/app/jobs/seek_and_destroy_expired_dossiers_job.rb
2019-12-03 17:18:53 +01:00

8 lines
193 B
Ruby

class SeekAndDestroyExpiredDossiersJob < ApplicationJob
queue_as :cron
def perform(*args)
Dossier.send_brouillon_expiration_notices
Dossier.destroy_brouillons_and_notify
end
end