added logger for display company register

This commit is contained in:
olegphenomenon 2021-10-25 14:36:16 +03:00
parent 37f8d5b6d9
commit 303150315d

View file

@ -102,8 +102,16 @@ module Api
ident_type: 'priv', ident_country_code: country)
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,
ident_country_code: country)
rescue CompanyRegister::NotAvailableError
nil
end