From 79b5350576165ba936d07a1f0d8b7731601e8563 Mon Sep 17 00:00:00 2001 From: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> Date: Fri, 23 Oct 2020 15:39:36 -0400 Subject: [PATCH] [MM-29937] Don't allow email and contact name to be updated from the MM app (#16058) * [MM-29937] Don't allow email and contact name to be updated from the MM app * Switched to use omitempty --- model/cloud.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model/cloud.go b/model/cloud.go index b08a4b5167..a137e5bbc0 100644 --- a/model/cloud.go +++ b/model/cloud.go @@ -45,9 +45,9 @@ type CloudCustomer struct { // CloudCustomerInfo represents editable info of a customer. type CloudCustomerInfo struct { Name string `json:"name"` - Email string `json:"email"` - ContactFirstName string `json:"contact_first_name"` - ContactLastName string `json:"contact_last_name"` + Email string `json:"email,omitempty"` + ContactFirstName string `json:"contact_first_name,omitempty"` + ContactLastName string `json:"contact_last_name,omitempty"` NumEmployees int `json:"num_employees"` }