demarches-normaliennes/app/jobs/discarded_dossiers_deletion_job.rb
2020-03-31 12:25:46 +02:00

8 lines
224 B
Ruby

class DiscardedDossiersDeletionJob < CronJob
self.cron_expression = "0 7 * * *"
def perform(*args)
Dossier.discarded_brouillon_expired.destroy_all
Dossier.discarded_en_construction_expired.destroy_all
end
end