Skip to content

Commit

Permalink
Merge pull request #40 from Senity-Waved/Fix/#39
Browse files Browse the repository at this point in the history
Fix: 인증 내역 조회에서 nickname 필드 반환하도록 수정
  • Loading branch information
chaewon-io authored Mar 18, 2024
2 parents 52719ce + 5d1214b commit 0df0564
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class VerificationListResponseDto {
private String imageUrl;
private ZonedDateTime verificationDate;
private Long likesCount;
private String nickname;

@JsonProperty("isLiked")
private boolean isLiked;
Expand All @@ -29,6 +30,7 @@ public VerificationListResponseDto(Verification verification, boolean isLiked) {
this.imageUrl = verification.getImageUrl();
this.isLiked = isLiked;
this.likesCount = verification.getLikesCount();
this.nickname = verification.getMember().getNickname();

if (verification.getCreateDate() != null) {
LocalDateTime localDateTime = verification.getCreateDate().toLocalDateTime();
Expand Down

0 comments on commit 0df0564

Please sign in to comment.