Skip to content

Commit ce108f7

Browse files
committed
Merge branch 'main' into release
2 parents 77ddd3d + d40e095 commit ce108f7

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/main/java/com/back/web7_9_codecrete_be/domain/artists/service/ArtistService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/main/java/com/back/web7_9_codecrete_be/domain/artists/service/SpotifyService.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)