Skip to content

Commit

Permalink
YEL-112 [fix] ENUM -> Boolean 수정
Browse files Browse the repository at this point in the history
YEL-112 [fix] ENUM -> Boolean 수정
  • Loading branch information
euije authored Aug 14, 2023
2 parents 0ba221f + 9cd8f85 commit d02cd81
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public record VoteDetailResponse(
@Schema(description = "열람권 개수")
Integer ticketCount,

@Schema(description = "구독권 여부", example = "NORMAL | ACTIVE | CANCELED")
Subscribe subscribe
@Schema(description = "구독권 여부", example = "true | false")
Boolean isSubscribe
) {

public static VoteDetailResponse of(Vote vote, User user) {
Expand All @@ -51,7 +51,7 @@ public static VoteDetailResponse of(Vote vote, User user) {
.senderGender(vote.getSender().getGender().name())
.vote(VoteContentVO.of(vote))
.ticketCount(user.getTicketCount())
.subscribe(user.getSubscribe())
.isSubscribe(user.getSubscribe() != Subscribe.NORMAL)
.build();
}
}
Expand Down

0 comments on commit d02cd81

Please sign in to comment.