mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 22:16:19 +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)
|
||||
contact.registrant_domains.any? do |domain|
|
||||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue