demarches-normaliennes/app/jobs/expired_dossiers_deletion_job.rb
2020-04-21 10:41:54 +02:00

8 lines
270 B
Ruby

class ExpiredDossiersDeletionJob < CronJob
self.schedule_expression = "every day at 7 am"
def perform(*args)
ExpiredDossiersDeletionService.process_expired_dossiers_brouillon
ExpiredDossiersDeletionService.process_expired_dossiers_en_construction
end
end