Merge pull request #2717 from internetee/fix-poll-message-to-invalid-company-ident

feat: Add invalid ident notification for company register status checks
This commit is contained in:
Timo Võhmar 2024-12-31 10:54:43 +02:00 committed by GitHub
commit ce50664930
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 65 additions and 32 deletions

View file

@ -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')