mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 03:59:33 +02:00
change test mode directly
This commit is contained in:
parent
cded813955
commit
95f5acb2b0
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue