From fccac285acf74ea26e588d38be73f2bc2eefd47c Mon Sep 17 00:00:00 2001 From: olegphenomenon Date: Mon, 25 Oct 2021 15:26:17 +0300 Subject: [PATCH] added another breakpoints --- .../api/v1/registrant/contacts_controller.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/controllers/api/v1/registrant/contacts_controller.rb b/app/controllers/api/v1/registrant/contacts_controller.rb index e1ed02181..9cd6f0a1c 100644 --- a/app/controllers/api/v1/registrant/contacts_controller.rb +++ b/app/controllers/api/v1/registrant/contacts_controller.rb @@ -126,21 +126,22 @@ module Api current_registrant_user.companies.each do |i| - c = Contact.find_by(uuid: uuid, ident_type: 'org', ident: company_codes, - ident_country_code: country) + # c = Contact.find_by(uuid: uuid, ident_type: 'org', ident: company_codes, + # ident_country_code: country) p "+++++++++++++++++" p "+++++++++++++++++" - p c.org_name + # p c.org_name p "+++++++++++++++++" p "+++++++++++++++++" + p i.companies p i.company_name p "+++++++++++++++++" p "+++++++++++++++++" - unless c.org_name == i.company_name - c.update(org_name: company_name) - end + # unless c.org_name == i.company_name + # c.update(org_name: company_name) + # end end Contact.find_by(uuid: uuid, ident_type: 'org', ident: company_codes,