From bc54a3f70c5e5bb08b0923e14cda6f51efa442b3 Mon Sep 17 00:00:00 2001 From: olegphenomenon Date: Wed, 19 Oct 2022 14:16:42 +0300 Subject: [PATCH] changed response data during updated the contact --- app/controllers/api/v1/registrant/contacts_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/api/v1/registrant/contacts_controller.rb b/app/controllers/api/v1/registrant/contacts_controller.rb index e7270e9c3..8fdf3a5b3 100644 --- a/app/controllers/api/v1/registrant/contacts_controller.rb +++ b/app/controllers/api/v1/registrant/contacts_controller.rb @@ -58,7 +58,6 @@ module Api !disclosed_attributes.include?('phone') contact.disclosed_attributes = disclosed_attributes if disclosed_attributes - publishable = reparsed_request[:registrant_publishable] contact.registrant_publishable = publishable if publishable.in? [true, false] @@ -74,7 +73,7 @@ module Api contact = update_and_notify!(contact) - render json: serialize_contact(contact, false) + render json: serialize_contact(contact, true) end private