Move job to interactor

This commit is contained in:
Alex Sherman 2020-12-04 18:09:11 +05:00
parent ccf91d306a
commit f6a7a08b24
9 changed files with 107 additions and 43 deletions

View file

@ -0,0 +1,11 @@
module Domains
module DeleteConfirm
class ProcessDeleteConfirmed < Base
def execute
domain.notify_registrar(:poll_pending_delete_confirmed_by_registrant)
domain.apply_pending_delete!
raise_errors!(domain)
end
end
end
end