change test mode directly

This commit is contained in:
oleghasjanov 2024-11-25 12:40:09 +02:00
parent cded813955
commit 95f5acb2b0
2 changed files with 4 additions and 3 deletions

View file

@ -24,8 +24,8 @@ module Contact::CompanyRegister
return unless org?
company_register.simple_data(registration_number: ident)
rescue CompanyRegister::NotAvailableError => e
Rails.logger.info "ERROR HAPPENED: CompanyRegister::NotAvailableError #{e.message}"
rescue CompanyRegister::NotAvailableError
Rails.logger.info "ERROR HAPPENED: CompanyRegister::NotAvailableError"
[]
end

View file

@ -2,5 +2,6 @@ CompanyRegister.configure do |config|
config.username = ENV['company_register_username']
config.password = ENV['company_register_password']
config.cache_period = ENV['company_register_cache_period_days'].to_i.days
config.test_mode = ENV['company_register_test_mode'] == 'true'
# config.test_mode = ENV['company_register_test_mode'] == 'true'
config.test_mode = false
end