demarches-normaliennes/app/jobs/cron/discarded_dossiers_deletion_job.rb

8 lines
159 B
Ruby
Raw Normal View History

class Cron::DiscardedDossiersDeletionJob < Cron::CronJob
self.schedule_expression = "every day at 2 am"
2020-03-19 13:11:45 +01:00
2021-10-21 13:29:47 +02:00
def perform
Dossier.purge_discarded
2020-03-19 13:11:45 +01:00
end
end