Skip to content

Commit

Permalink
Updated response structure for org profile update API
Browse files Browse the repository at this point in the history
  • Loading branch information
karthik-tarento committed Jun 22, 2022
1 parent f0eb44b commit d6efef3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,10 @@ public SBApiResponse orgProfileUpdate(Map<String, Object> request) throws Except
}
if (status.equals(RestStatus.CREATED) || status.equals(RestStatus.OK)) {
response.setResponseCode(HttpStatus.ACCEPTED);
response.getResult().put(Constants.RESULT, esOrgProfileMap);
Map<String, Object> resultMap = new HashMap<String, Object>();
resultMap.put(Constants.ORG_ID, orgId);
resultMap.put(Constants.PROFILE_DETAILS, esOrgProfileMap);
response.getResult().put(Constants.RESULT, resultMap);
} else {
response.setResponseCode(HttpStatus.INTERNAL_SERVER_ERROR);
response.getParams().setErrmsg("Failed to add details to ES Service");
Expand Down

0 comments on commit d6efef3

Please sign in to comment.