From 7da6eea85c526565d1884b4d18573d15493c043b Mon Sep 17 00:00:00 2001 From: oleghasjanov Date: Mon, 7 Oct 2024 11:04:56 +0300 Subject: [PATCH] updated FD conditions --- lib/tasks/company_status.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/company_status.rake b/lib/tasks/company_status.rake index 11fd50ef3..1553c870d 100644 --- a/lib/tasks/company_status.rake +++ b/lib/tasks/company_status.rake @@ -196,9 +196,9 @@ namespace :company_status do def soft_delete_company(contact) contact.registrant_domains.each do |domain| - next if domain.force_delete_scheduled? + # next if domain.force_delete_scheduled? - domain.schedule_force_delete(type: :soft) + domain.schedule_force_delete(type: :soft, notify_by_email: true, reason: 'invalid_company', email: contact.email) puts "Soft delete process initiated for company: #{contact.name} with ID: #{contact.id} domain: #{domain.name}" end