diff --git a/app/models/contact/company_register.rb b/app/models/contact/company_register.rb index 702ddd180e..c27ba3e3d8 100644 --- a/app/models/contact/company_register.rb +++ b/app/models/contact/company_register.rb @@ -23,7 +23,7 @@ def return_company_status def return_company_data return unless org? - company_register.simple_data(registration_number: ident) + company_register.simple_data(registration_number: ident.to_s) rescue CompanyRegister::NotAvailableError Rails.logger.info "ERROR HAPPENED: CompanyRegister::NotAvailableError" [] diff --git a/config/initializers/company_register.rb b/config/initializers/company_register.rb index 8cced3dd8f..366c58ca46 100644 --- a/config/initializers/company_register.rb +++ b/config/initializers/company_register.rb @@ -2,6 +2,5 @@ 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 = false + config.test_mode = ENV['company_register_test_mode'] == 'true' end \ No newline at end of file