Skip to content

Commit

Permalink
🐞 BugFix/#181 - postAt -> postAgo μ˜€νƒ€ μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
dongkyeomjang committed Nov 27, 2024
1 parent 61233fe commit 2a96618
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ public static class CommentInfoDto extends SelfValidating<CommentInfoDto> {
@JsonProperty("content")
private final String content;

@JsonProperty("posted_at")
private final String postedAt;
@JsonProperty("posted_ago")
private final String postedAgo;

@Builder
public CommentInfoDto(Long id, String content, String postedAt) {
public CommentInfoDto(Long id, String content, String postedAgo) {
this.id = id;
this.content = content;
this.postedAt = postedAt;
this.postedAgo = postedAgo;

this.validateSelf();
}
Expand All @@ -94,7 +94,7 @@ public static CommentInfoDto fromEntity(Comment comment) {
return CommentInfoDto.builder()
.id(comment.getId())
.content(comment.getContent())
.postedAt(DateTimeUtil.calculatePostedAgo(comment.getCreatedAt()))
.postedAgo(DateTimeUtil.calculatePostedAgo(comment.getCreatedAt()))
.build();
}
}
Expand Down

0 comments on commit 2a96618

Please sign in to comment.