mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
added logger for display company register
This commit is contained in:
parent
37f8d5b6d9
commit
303150315d
1 changed files with 8 additions and 0 deletions
|
@ -102,8 +102,16 @@ module Api
|
||||||
ident_type: 'priv', ident_country_code: country)
|
ident_type: 'priv', ident_country_code: country)
|
||||||
return contact if contact
|
return contact if contact
|
||||||
|
|
||||||
|
company_register = CompanyRegister::Client.new
|
||||||
|
res = company_register.representation_rights(citizen_personal_code: company_codes,
|
||||||
|
citizen_country_code: current_registrant_user.country.alpha3)
|
||||||
|
p "++++++++++++++++"
|
||||||
|
p res
|
||||||
|
p "+++++++++++++++++"
|
||||||
|
|
||||||
Contact.find_by(uuid: uuid, ident_type: 'org', ident: company_codes,
|
Contact.find_by(uuid: uuid, ident_type: 'org', ident: company_codes,
|
||||||
ident_country_code: country)
|
ident_country_code: country)
|
||||||
|
|
||||||
rescue CompanyRegister::NotAvailableError
|
rescue CompanyRegister::NotAvailableError
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue