demarches-normaliennes/app/jobs/discarded_dossiers_deletion_job.rb
2020-03-25 17:28:25 +01:00

8 lines
211 B
Ruby

class DiscardedDossiersDeletionJob < ApplicationJob
queue_as :cron
def perform(*args)
Dossier.discarded_brouillon_expired.destroy_all
Dossier.discarded_en_construction_expired.destroy_all
end
end