diff --git a/resources/config b/resources/config index 05d4ce0..277ef9b 160000 --- a/resources/config +++ b/resources/config @@ -1 +1 @@ -Subproject commit 05d4ce0e2fdfe836543d51492cd06822eff21975 +Subproject commit 277ef9b139ad3765f62a9e9772170001860e6eef diff --git a/src/handlerv2/updateorganization_handler.go b/src/handlerv2/updateorganization_handler.go index ed6a5c5..475e588 100644 --- a/src/handlerv2/updateorganization_handler.go +++ b/src/handlerv2/updateorganization_handler.go @@ -57,5 +57,20 @@ func UpdateOrganization(w http.ResponseWriter, r *http.Request) { return } go user.UpdateOrganizationsSubscribedUsers(orgResp) - w.WriteHeader(http.StatusAccepted) + + oResp := organizationResp{ + ID: orgResp.ID, + Name: orgResp.Name, + Description: orgResp.Description, + Location: orgResp.Location, + PolicyURL: orgResp.PolicyURL, + CoverImageID: orgResp.CoverImageID, + CoverImageURL: orgResp.CoverImageURL, + LogoImageID: orgResp.LogoImageID, + LogoImageURL: orgResp.LogoImageURL, + } + w.WriteHeader(http.StatusOK) + w.Header().Set(config.ContentTypeHeader, config.ContentTypeJSON) + response, _ := json.Marshal(oResp) + w.Write(response) }