From 612b8560332800b3c36127ad7fa98bb794d71e84 Mon Sep 17 00:00:00 2001 From: Neehaarika Date: Mon, 3 Jun 2024 11:53:58 -0700 Subject: [PATCH] fix: 200 response needs a body returned --- .../mx/path/model/mdx/web/controller/ProfilesController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdx-web/src/main/java/com/mx/path/model/mdx/web/controller/ProfilesController.java b/mdx-web/src/main/java/com/mx/path/model/mdx/web/controller/ProfilesController.java index 5f8b4f57..62213087 100644 --- a/mdx-web/src/main/java/com/mx/path/model/mdx/web/controller/ProfilesController.java +++ b/mdx-web/src/main/java/com/mx/path/model/mdx/web/controller/ProfilesController.java @@ -108,7 +108,7 @@ public final ResponseEntity updateSecurityQuestions(@RequestB if (result != null && result.getChallenges() != null && result.getChallenges().size() > 0) { return new ResponseEntity<>(response.getResult().wrapped(), createMultiMapForResponse(response.getHeaders()), HttpStatus.ACCEPTED); } - return new ResponseEntity<>(createMultiMapForResponse(response.getHeaders()), HttpStatus.OK); + return new ResponseEntity<>(response.getResult().wrapped(), createMultiMapForResponse(response.getHeaders()), HttpStatus.OK); } @RequestMapping(value = "/users/{userId}/profile/phones", method = RequestMethod.GET)