internetee-registry/app/interactions/domain_delete_interaction/delete.rb
2020-12-08 13:14:48 +05:00

11 lines
305 B
Ruby

module DomainDeleteInteraction
class Delete < Base
def execute
::PaperTrail.request.whodunnit = "interaction - #{self.class.name}"
WhoisRecord.where(domain_id: domain.id).destroy_all
domain.destroy
compose(DomainDeleteInteraction::NotifyRegistrar, inputs)
end
end
end