Skip to content

Commit

Permalink
hotfix: 글자길이 조정 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hong-sile committed Aug 31, 2024
1 parent abdc2e8 commit 4341cb0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ private String extractArtistNames(final List<TransferredMusicInContext> transfer
.map(artistNames -> artistNames.split(","))
.flatMap(Arrays::stream)
.collect(groupingBy(identity(), counting()));
return artistCountMap.keySet().stream()
final String artistNames = artistCountMap.keySet().stream()
.sorted(comparing(artistCountMap::get).reversed())
.collect(Collectors.joining(","))
.substring(0, 100);
.collect(Collectors.joining(","));
return artistNames.length() > 100 ? artistNames.substring(0, 100) : artistNames;
}
}

0 comments on commit 4341cb0

Please sign in to comment.