mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 15:06:23 +02:00
test: remove force delete enable
This commit is contained in:
parent
468e9e829f
commit
6b1a62cf2c
1 changed files with 2 additions and 2 deletions
|
@ -166,7 +166,7 @@ namespace :company_status do
|
||||||
if resp.empty?
|
if resp.empty?
|
||||||
put_company_to_missing_file(contact: contact, path: missing_companies_in_business_registry_path)
|
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}"
|
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
|
else
|
||||||
status = resp.first.status.upcase
|
status = resp.first.status.upcase
|
||||||
kandeliik_type = resp.first.kandeliik.last.last.kandeliik
|
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)
|
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}"
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue