Remove legacy code

This commit is contained in:
Thiago Youssef 2022-04-28 12:29:24 +03:00
parent 626edbd4c3
commit c246bbaa6d
3 changed files with 8 additions and 11 deletions

View file

@ -92,14 +92,4 @@ class ValidationEvent < ApplicationRecord
purge_date: domain.purge_date,
email: domain.status_notes[DomainStatus::FORCE_DELETE]))
end
def lift_force_delete
domain_contacts = Contact.where(email: email).map(&:domain_contacts).flatten
registrant_domains = Domain.where(registrant_id: Registrant.where(email: email).pluck(:id))
domains = domain_contacts.map(&:domain).flatten + registrant_domains
domains.each do |domain|
Domains::ForceDeleteLift::Base.run(domain: domain)
end
end
end