Skip to content

Commit

Permalink
Fix for migrate user API
Browse files Browse the repository at this point in the history
  • Loading branch information
karthik-tarento committed Aug 26, 2022
1 parent 2e5aebe commit 17429a9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -919,11 +919,11 @@ private String executeMigrateUser(Map<String, Object> request, Map<String, Strin
String errMsg = StringUtils.EMPTY;
Map<String, Object> migrateResponse = (Map<String, Object>) outboundRequestHandlerService.fetchResultUsingPatch(
serverConfig.getSbUrl() + serverConfig.getLmsUserMigratePath(), request, headers);
if (migrateResponse != null
&& !Constants.OK.equalsIgnoreCase((String) migrateResponse.get(Constants.RESPONSE_CODE))) {
errMsg = (String) ((Map<String, Object>) migrateResponse.get(Constants.PARAMS)).get(Constants.ERROR_MESSAGE);;
} else {
errMsg = "Failed to migrate User.";
if (migrateResponse == null
|| !Constants.OK.equalsIgnoreCase((String) migrateResponse.get(Constants.RESPONSE_CODE))) {
errMsg = migrateResponse == null ? "Failed to migrate User."
: (String) ((Map<String, Object>) migrateResponse.get(Constants.PARAMS))
.get(Constants.ERROR_MESSAGE);
}
return errMsg;
}
Expand Down

0 comments on commit 17429a9

Please sign in to comment.