Skip to content

Commit

Permalink
fix [#223] 같은 아이디로 조회된 아티스트 정보가 여러 객체에 주입될 수 있도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1hyun committed Feb 14, 2025
1 parent 7be63f2 commit 2e68731
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ private void injection(
final List<ConfetiArtist> confetiArtists
) {
confetiArtists.forEach((confetiArtist -> {
ConfetiArtist mappedConfetiArtist = artistMapper.get(confetiArtist.getArtistId()).poll();
Queue<ConfetiArtist> mappedConfetiArtists = artistMapper.get(confetiArtist.getArtistId());

if (mappedConfetiArtist == null) {
throw new ConfetiException(ErrorMessage.INTERNAL_SERVER_ERROR);
}
while (!mappedConfetiArtists.isEmpty()) {
ConfetiArtist mappedConfetiArtist = mappedConfetiArtists.poll();

mappedConfetiArtist.setName(confetiArtist.getName());
mappedConfetiArtist.setProfileUrl(confetiArtist.getProfileUrl());
mappedConfetiArtist.setName(confetiArtist.getName());
mappedConfetiArtist.setProfileUrl(confetiArtist.getProfileUrl());
}
}));
}

Expand Down

0 comments on commit 2e68731

Please sign in to comment.