From 6b1a62cf2c6b218b86aebe3755ef03752ea3c918 Mon Sep 17 00:00:00 2001 From: oleghasjanov Date: Thu, 26 Sep 2024 15:39:48 +0300 Subject: [PATCH] test: remove force delete enable --- 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 abb93b584..f3970f7ea 100644 --- a/lib/tasks/company_status.rake +++ b/lib/tasks/company_status.rake @@ -166,7 +166,7 @@ namespace :company_status do if resp.empty? put_company_to_missing_file(contact: contact, path: missing_companies_in_business_registry_path) puts "Company: #{contact.name} with ident: #{contact.ident} and ID: #{contact.id} is missing in registry, company id: #{contact.id}" - soft_delete_company(contact) if soft_delete_enable + soft_delete_company(contact) else status = resp.first.status.upcase kandeliik_type = resp.first.kandeliik.last.last.kandeliik @@ -180,7 +180,7 @@ namespace :company_status do write_to_csv_file(csv_file_path: csv_file_path, headers: headers, attrs: attrs) puts "Company: #{contact.name} with ident: #{contact.ident} and ID: #{contact.id} has status #{status}, company id: #{contact.id}" - soft_delete_company(contact) if soft_delete_enable + soft_delete_company(contact) end end end