demarches-normaliennes/app/jobs/discarded_dossiers_deletion_job.rb

9 lines
211 B
Ruby
Raw Normal View History

2020-03-19 13:11:45 +01:00
class DiscardedDossiersDeletionJob < ApplicationJob
queue_as :cron
def perform(*args)
Dossier.discarded_brouillon_expired.destroy_all
Dossier.discarded_en_construction_expired.destroy_all
end
end