Skip to content

Commit

Permalink
Merge branch 'develop' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
GaBaljaintheroom committed Dec 29, 2024
2 parents 4b0f9bb + c258a31 commit 1355f4f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public record ArtistSearchPaginationApiParam(
String name,

@Schema(description = "아티스트의 스포티파이 ID")
String artistSpotifyId,
String spotifyId,

@Schema(description = "아티스트 구독 여부")
boolean isSubscribed
Expand All @@ -28,7 +28,7 @@ public static ArtistSearchPaginationApiParam from(ArtistSearchPaginationServiceP
.id(param.artistId())
.name(param.name())
.imageURL(param.artistImageUrl())
.artistSpotifyId(param.artistSpotifyId())
.spotifyId(param.artistSpotifyId())
.isSubscribed(param.isSubscribed())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
public record ArtistUnsubscriptionPaginationApiParam(
@Schema(description = "아티스트 ID")
UUID id,
@Schema(description = "아티스트의 스포티파이 ID")
String spotifyId,
@Schema(description = "아티스트 이미지 URL")
String imageURL,
@Schema(description = "아티스트 이름")
Expand All @@ -18,6 +20,7 @@ public static ArtistUnsubscriptionPaginationApiParam from(
) {
return new ArtistUnsubscriptionPaginationApiParam(
param.id(),
param.spotifyId(),
param.image(),
param.name()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public record ArtistIdsApiResponse(
UUID id,

@Schema(description = "아티스트의 스포티파이 ID")
String artistSpotifyId
String spotifyId
) {

public static ArtistIdsApiResponse from(ArtistIdsServiceResponse response) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@

public record ArtistUnsubscriptionPaginationServiceParam(
UUID id,
String spotifyId,
String image,
String name
) {

public ArtistUnsubscriptionPaginationServiceParam(ArtistSimpleDomainResponse response) {
this(
response.id(),
response.spotifyId(),
response.image(),
response.name()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@Builder
public record ArtistSimpleDomainResponse(
UUID id,
String spotifyId,
String name,
String image
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public ArtistPaginationDomainResponse findAllWithCursorPagination(
Projections.constructor(
ArtistSimpleDomainResponse.class,
artist.id,
artist.spotifyId,
artist.name,
artist.image
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private List<ArtistSearchPortParam> filterKoreanArtistSearch(
ArtistSearchPortResponse response
) {
return response.artists().stream()
.filter(artist -> artist.genres().stream()
.filter(artist -> !artist.genres().isEmpty() && artist.genres().stream()
.noneMatch(ArtistFilterType::isKoreanArtist))
.toList();
}
Expand Down

0 comments on commit 1355f4f

Please sign in to comment.