Skip to content

Commit 893fe45

Browse files
KB-11901 | Content: Karmayogi Prarambh Module, which should be visible to all users tagged “Rozgar Mela.” (#179)
1. Made the check case insensitive.
1 parent 344a54a commit 893fe45

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/java/com/igot/cb/service/UserAndOrgServiceImpl.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,12 @@ private void checkUserTaggedUnderRozgarMela(Map<String, String> userProfile, Map
248248
Map<String, Object> additionalProperties = (Map<String, Object>) profileDetails.get(Constants.ADDITIONAL_PROPERTIES);
249249
if (MapUtils.isNotEmpty(additionalProperties)) {
250250
List<String> tagList = (List<String>) additionalProperties.get(Constants.TAG);
251-
if (CollectionUtils.isNotEmpty(tagList) && tagList.contains(userProfileTagValue)) {
252-
putIfNotNullOrEmpty(userProfile, userProfileTagBitmapKey, userProfileTagValue);
251+
if (CollectionUtils.isNotEmpty(tagList)) {
252+
boolean hasTag = tagList.stream()
253+
.anyMatch(tag -> tag.equalsIgnoreCase(userProfileTagValue));
254+
if (hasTag) {
255+
putIfNotNullOrEmpty(userProfile, userProfileTagBitmapKey, userProfileTagValue);
256+
}
253257
}
254258
}
255259
}

0 commit comments

Comments
 (0)