rename SeekAndDestroyExpiredDossiersJob to ExpiredDossiersDeletionJob

This commit is contained in:
Paul Chavard 2020-02-26 17:44:06 +01:00
parent 6a5a83d555
commit 85580ce34e
2 changed files with 7 additions and 8 deletions

View file

@ -0,0 +1,7 @@
class ExpiredDossiersDeletionJob < ApplicationJob
queue_as :cron
def perform(*args)
ExpiredDossiersDeletionService.process_dossiers_brouillon
end
end

View file

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