rename SeekAndDestroyExpiredDossiersJob to ExpiredDossiersDeletionJob
This commit is contained in:
parent
6a5a83d555
commit
85580ce34e
2 changed files with 7 additions and 8 deletions
7
app/jobs/expired_dossiers_deletion_job.rb
Normal file
7
app/jobs/expired_dossiers_deletion_job.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class ExpiredDossiersDeletionJob < ApplicationJob
|
||||
queue_as :cron
|
||||
|
||||
def perform(*args)
|
||||
ExpiredDossiersDeletionService.process_dossiers_brouillon
|
||||
end
|
||||
end
|
|
@ -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
|
Loading…
Reference in a new issue