File tree Expand file tree Collapse file tree
src/main/java/com/back/web7_9_codecrete_be/domain/artists/service Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,7 +121,8 @@ public ArtistDetailResponse getArtistDetail(Long artistId) {
121121 artist .getArtistType (),
122122 likeCount ,
123123 artist .getId (),
124- genreId
124+ genreId ,
125+ artist .getDescription ()
125126 );
126127 }
127128
Original file line number Diff line number Diff line change @@ -1200,7 +1200,8 @@ public ArtistDetailResponse getArtistDetail(
12001200 ArtistType artistType ,
12011201 long likeCount ,
12021202 long artistId ,
1203- Long genreId
1203+ Long genreId ,
1204+ String description
12041205 ) {
12051206 try {
12061207 // 1. Redis 캐시에서 조회 시도
@@ -1223,6 +1224,7 @@ public ArtistDetailResponse getArtistDetail(
12231224 Artist dbArtist = artistRepository .findById (artistId )
12241225 .orElse (null );
12251226 String nameKo = dbArtist != null ? dbArtist .getNameKo () : null ;
1227+ String artistDescription = description != null ? description : "" ;
12261228
12271229 // 5. Related Artists 조회 (DB 기반 로직, 캐시하지 않음)
12281230 List <RelatedArtistResponse > relatedResponses = relatedArtistService .getRelatedArtists (
@@ -1243,7 +1245,7 @@ public ArtistDetailResponse getArtistDetail(
12431245 likeCount ,
12441246 spotifyData .totalAlbums (),
12451247 spotifyData .popularity (),
1246- "" ,
1248+ artistDescription ,
12471249 spotifyData .albums (),
12481250 spotifyData .topTracks (),
12491251 relatedResponses
You can’t perform that action at this time.
0 commit comments