demarches-normaliennes/app/jobs/seek_and_destroy_expired_dossiers_job.rb

9 lines
193 B
Ruby
Raw Normal View History

2019-12-03 15:20:06 +01:00
class SeekAndDestroyExpiredDossiersJob < ApplicationJob
queue_as :cron
def perform(*args)
Dossier.send_brouillon_expiration_notices
Dossier.destroy_brouillons_and_notify
end
end