mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 06:56:23 +02:00
added new pattern for FD lifted
This commit is contained in:
parent
dcf9447f97
commit
23c010f034
1 changed files with 7 additions and 1 deletions
|
@ -76,7 +76,13 @@ class CompanyRegisterStatusJob < ApplicationJob
|
||||||
def check_for_force_delete(contact)
|
def check_for_force_delete(contact)
|
||||||
contact.registrant_domains.any? do |domain|
|
contact.registrant_domains.any? do |domain|
|
||||||
notes = domain.status_notes[DomainStatus::FORCE_DELETE]
|
notes = domain.status_notes[DomainStatus::FORCE_DELETE]
|
||||||
notes && notes.include?("Company no: #{contact.ident}")
|
notes_check = notes && notes.include?("Company no: #{contact.ident}")
|
||||||
|
|
||||||
|
if !notes_check && domain.force_delete_data.present?
|
||||||
|
domain.force_delete_data['template_name'] == 'invalid_company'
|
||||||
|
else
|
||||||
|
notes_check
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue