Add seek_and_destroy_expired_dossier

This commit is contained in:
simon lehericey 2019-12-03 15:20:06 +01:00
parent 006e426a11
commit 508ba8f116
3 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,8 @@
class SeekAndDestroyExpiredDossiersJob < ApplicationJob
queue_as :cron
def perform(*args)
Dossier.send_brouillon_expiration_notices
Dossier.destroy_brouillons_and_notify
end
end