From 303150315d567d6f7debc9e96473a02d33157549 Mon Sep 17 00:00:00 2001 From: olegphenomenon Date: Mon, 25 Oct 2021 14:36:16 +0300 Subject: [PATCH] added logger for display company register --- app/controllers/api/v1/registrant/contacts_controller.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/controllers/api/v1/registrant/contacts_controller.rb b/app/controllers/api/v1/registrant/contacts_controller.rb index 30096ab8a..2dda1619c 100644 --- a/app/controllers/api/v1/registrant/contacts_controller.rb +++ b/app/controllers/api/v1/registrant/contacts_controller.rb @@ -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