From bd8d3ad68483e68ebc51e2c4d5cdf657bd625057 Mon Sep 17 00:00:00 2001 From: oleghasjanov Date: Thu, 19 Dec 2024 14:48:30 +0200 Subject: [PATCH] updated whiteist companies handling --- lib/tasks/company_status.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/company_status.rake b/lib/tasks/company_status.rake index 2ee90c544..f36f9829b 100644 --- a/lib/tasks/company_status.rake +++ b/lib/tasks/company_status.rake @@ -39,7 +39,7 @@ namespace :company_status do puts "*** Run 3 step. I process companies, update their information, and sort them into different files based on whether the companies are missing or removed from the business registry ***" - whitelisted_companies = JSON.parse(ENV['whitelist_companies']) # ["12345678", "87654321"] + whitelisted_companies = ENV['whitelist_companies'].present? ? JSON.parse(ENV['whitelist_companies']) : [] contacts_query = Contact.where(ident_type: 'org', ident_country_code: 'EE')