demarches-normaliennes/app/jobs/cron/discarded_dossiers_deletion_job.rb
2021-10-26 11:16:29 +02:00

7 lines
159 B
Ruby

class Cron::DiscardedDossiersDeletionJob < Cron::CronJob
self.schedule_expression = "every day at 2 am"
def perform
Dossier.purge_discarded
end
end