Skip to content

Commit

Permalink
changed ident to string
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Nov 25, 2024
1 parent 95f5acb commit 88d7689
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/contact/company_register.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
[]
Expand Down
3 changes: 1 addition & 2 deletions config/initializers/company_register.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 88d7689

Please sign in to comment.