Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nandhu-kumar committed Oct 17, 2024
2 parents 134e680 + 75f0bd7 commit efd6045
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,12 @@ public ClaimDetailResponse getClaimDetails(String transactionId) {
}

//Profile update is mandated only if any essential verified claim is requested
boolean isEssentialVerifiedClaimRequested = transaction.getResolvedClaims().getUserinfo()
boolean unverifiedEssentialClaimsExist = transaction.getResolvedClaims().getUserinfo()
.entrySet()
.stream()
.anyMatch( entry -> entry.getValue().stream()
.anyMatch(m -> (boolean) m.getOrDefault("essential", false) && m.get("verification") != null ));
claimDetailResponse.setProfileUpdateRequired(isEssentialVerifiedClaimRequested);
.anyMatch(m -> (boolean) m.getOrDefault("essential", false) && m.get("verification") == null ));
claimDetailResponse.setProfileUpdateRequired(unverifiedEssentialClaimsExist);
claimDetailResponse.setClaimStatus(list);

auditWrapper.logAudit(Action.CLAIM_DETAILS, ActionStatus.SUCCESS, AuditHelper.buildAuditDto(transactionId, transaction), null);
Expand Down

0 comments on commit efd6045

Please sign in to comment.