Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ public ArtistDetailResponse getArtistDetail(Long artistId) {
artist.getArtistType(),
likeCount,
artist.getId(),
genreId
genreId,
artist.getDescription()
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,8 @@ public ArtistDetailResponse getArtistDetail(
ArtistType artistType,
long likeCount,
long artistId,
Long genreId
Long genreId,
String description
) {
try {
// 1. Redis 캐시에서 조회 시도
Expand All @@ -1223,6 +1224,7 @@ public ArtistDetailResponse getArtistDetail(
Artist dbArtist = artistRepository.findById(artistId)
.orElse(null);
String nameKo = dbArtist != null ? dbArtist.getNameKo() : null;
String artistDescription = description != null ? description : "";

// 5. Related Artists 조회 (DB 기반 로직, 캐시하지 않음)
List<RelatedArtistResponse> relatedResponses = relatedArtistService.getRelatedArtists(
Expand All @@ -1243,7 +1245,7 @@ public ArtistDetailResponse getArtistDetail(
likeCount,
spotifyData.totalAlbums(),
spotifyData.popularity(),
"",
artistDescription,
spotifyData.albums(),
spotifyData.topTracks(),
relatedResponses
Expand Down