Skip to content

Commit

Permalink
Merge pull request #289 from MOONSHOT-Team/feature/#288
Browse files Browse the repository at this point in the history
[Fix] #288 - 소셜 KR 중복 버그 수정
  • Loading branch information
0lynny authored Jun 4, 2024
2 parents 11e1fd6 + 448bfea commit 000bd3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private static SocialKeyResultDto getSocialKeyResultDto(KeyResult keyResult) {
keyResult.getIdx(),
keyResult.getTarget(),
keyResult.getMetric(),
keyResult.getTaskList().stream().map(SocialTaskDto::of).toList()
keyResult.getTaskList().stream().distinct().map(SocialTaskDto::of).toList()
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static SocialObjectiveDto of(Objective objective) {
objective.getContent(),
objective.getPeriod().getStartAt().format(DateTimeFormatter.ISO_LOCAL_DATE),
objective.getPeriod().getExpireAt().format(DateTimeFormatter.ISO_LOCAL_DATE),
objective.getKeyResultList().stream().map(SocialKeyResultDto::of).toList()
objective.getKeyResultList().stream().distinct().map(SocialKeyResultDto::of).toList()
);
}
}

0 comments on commit 000bd3f

Please sign in to comment.