added updated method

This commit is contained in:
olegphenomenon 2021-10-25 16:15:10 +03:00
parent b0ca5ddec0
commit b0ed6167f5
2 changed files with 17 additions and 2 deletions

View file

@ -20,8 +20,7 @@ class RegistrantUser < User
def companies(company_register = CompanyRegister::Client.new)
return [] if ident.include?('-')
p "++++++++++++++++++++++++++++++++++++++++"
p company_register.representation_rights(citizen_personal_code: ident,
company_register.representation_rights(citizen_personal_code: ident,
citizen_country_code: country.alpha3)
end