changed response data during updated the contact

This commit is contained in:
olegphenomenon 2022-10-19 14:16:42 +03:00
parent d8283febc0
commit bc54a3f70c

View file

@ -58,7 +58,6 @@ module Api
!disclosed_attributes.include?('phone') !disclosed_attributes.include?('phone')
contact.disclosed_attributes = disclosed_attributes if disclosed_attributes contact.disclosed_attributes = disclosed_attributes if disclosed_attributes
publishable = reparsed_request[:registrant_publishable] publishable = reparsed_request[:registrant_publishable]
contact.registrant_publishable = publishable if publishable.in? [true, false] contact.registrant_publishable = publishable if publishable.in? [true, false]
@ -74,7 +73,7 @@ module Api
contact = update_and_notify!(contact) contact = update_and_notify!(contact)
render json: serialize_contact(contact, false) render json: serialize_contact(contact, true)
end end
private private