2020-03-28 16:49:40 +01:00
|
|
|
class DiscardedDossiersDeletionJob < CronJob
|
|
|
|
self.cron_expression = "0 7 * * *"
|
2020-03-19 13:11:45 +01:00
|
|
|
|
|
|
|
def perform(*args)
|
|
|
|
Dossier.discarded_brouillon_expired.destroy_all
|
|
|
|
Dossier.discarded_en_construction_expired.destroy_all
|
|
|
|
end
|
|
|
|
end
|