Skip to content

Commit 73aeee4

Browse files
committed
fix(review): 응답 DTO 수정
1 parent baa0659 commit 73aeee4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/somemore/review/dto/response/ReviewResponseDto.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public record ReviewResponseDto(
2525
@Schema(description = "작성 일자", example = "2024-12-01T09:00:00", type = "string")
2626
LocalDateTime createdAt,
2727
@Schema(description = "수정 일자", example = "2024-12-01T09:00:00", type = "string")
28-
LocalDateTime updateAt
28+
LocalDateTime updatedAt
2929
) {
3030

3131
public static ReviewResponseDto from(Review review) {
@@ -35,6 +35,8 @@ public static ReviewResponseDto from(Review review) {
3535
.title(review.getTitle())
3636
.content(review.getContent())
3737
.imgUrl(review.getImgUrl())
38+
.createdAt(review.getCreatedAt())
39+
.updatedAt(review.getUpdatedAt())
3840
.build();
3941
}
4042

0 commit comments

Comments
 (0)