Skip to content

Commit

Permalink
[Mosip_31365] setting identity to idrequstDTO
Browse files Browse the repository at this point in the history
Signed-off-by: khuddus shariff <[email protected]>
  • Loading branch information
Khuddusshariff0022 committed Mar 7, 2024
1 parent 3c5ddc3 commit c82e10b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ public IdResponseDTO idrepoUpdateDraft(String id, String uin, IdRequestDto idReq
JSONObject existingIdentity = mapper.readValue(mapper.writeValueAsString(responseDTO.getIdentity()), JSONObject.class);
JSONObject newIdentity = mapper.readValue(mapper.writeValueAsString(idRequestDto.getRequest().getIdentity()), JSONObject.class);
newIdentity.put(UIN, existingIdentity.get(UIN));
idRequestDto.getRequest().setIdentity(newIdentity);
// setting the identity to request while updating the draft.
requestDto.setIdentity(newIdentity);
requestDto.setRegistrationId(responseDTO.getRegistrationId());
requestDto.setStatus(responseDTO.getStatus());
requestDto.setUin(responseDTO.getUin());
Expand Down

0 comments on commit c82e10b

Please sign in to comment.