mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
mend
This commit is contained in:
parent
ba9aeb437d
commit
c4f35522ca
1 changed files with 4 additions and 2 deletions
|
@ -17,6 +17,8 @@ class CompanyRegisterStatusJob < ApplicationJob
|
||||||
# avoid spamming company register
|
# avoid spamming company register
|
||||||
sleep spam_time_delay
|
sleep spam_time_delay
|
||||||
|
|
||||||
|
puts "WHAT YOU GONNA DO WHEN I COME FOR YOU?"
|
||||||
|
|
||||||
company_status = contact.return_company_status
|
company_status = contact.return_company_status
|
||||||
contact.update!(company_register_status: company_status, checked_company_at: Time.zone.now)
|
contact.update!(company_register_status: company_status, checked_company_at: Time.zone.now)
|
||||||
|
|
||||||
|
@ -63,8 +65,8 @@ class CompanyRegisterStatusJob < ApplicationJob
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_for_force_delete(contact)
|
def check_for_force_delete(contact)
|
||||||
contact.registrant_domains.any? && domain.status_notes[DomainStatus::FORCE_DELETE].include?("Company no: #{contact.ident}") do |domain|
|
contact.registrant_domains.any? do |domain|
|
||||||
domain.force_delete_scheduled?
|
domain.status_notes[DomainStatus::FORCE_DELETE].include?("Company no: #{contact.ident}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue