Skip to content

Commit

Permalink
change contact domains method
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Sep 27, 2024
1 parent 2121840 commit fb5d651
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/tasks/company_status.rake
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ namespace :company_status do
sleep sleep_time
puts "Sleeping for #{sleep_time} seconds"


resp = contact.return_company_details

if resp.empty?
Expand Down Expand Up @@ -202,9 +201,9 @@ namespace :company_status do
#

puts "Try to set soft delete for company: #{contact.name} with ID: #{contact.id}"
puts "Contact domains: #{contact.domains.map(&:name)}"
puts "Contact (registrant) domains: #{contact.registrant_domains.map(&:name)}"

contact.domains.each do |domain|
contact.registrant_domains.each do |domain|
puts "Domain: #{domain.name} with force delete scheduled: #{domain.force_delete_scheduled?}"
next if domain.force_delete_scheduled?

Expand Down

0 comments on commit fb5d651

Please sign in to comment.