From 668f4c2e266e4bcfd0f6c2f4d8c960d5bb7d740d Mon Sep 17 00:00:00 2001 From: tfer2442 Date: Mon, 19 Aug 2024 00:24:23 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20post=20=EB=8B=A8=EC=9D=BC=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=20API=20createDate=20=EB=B0=98=ED=99=98=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20(#81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/haedal/haedalweb/service/PostService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/haedal/haedalweb/service/PostService.java b/src/main/java/com/haedal/haedalweb/service/PostService.java index 6c4a9d4..23f3682 100644 --- a/src/main/java/com/haedal/haedalweb/service/PostService.java +++ b/src/main/java/com/haedal/haedalweb/service/PostService.java @@ -171,6 +171,7 @@ public PostDTO getPost(Long postId) { .postContent(post.getContent()) .postImageUrl(s3Service.generatePreSignedGetUrl(post.getImageUrl())) .postViews(post.getViews()) + .postCreateDate(post.getCreateDate()) .postActivityStartDate(post.getActivityStartDate()) .postActivityEndDate(post.getActivityEndDate()) .userId(post.getUser().getId()) @@ -188,6 +189,7 @@ public PostDTO getPost(Long postId) { .postContent(post.getContent()) .postImageUrl(s3Service.generatePreSignedGetUrl(post.getImageUrl())) .postViews(post.getViews()) + .postCreateDate(post.getCreateDate()) .postActivityStartDate(post.getActivityStartDate()) .postActivityEndDate(post.getActivityEndDate()) .userId(post.getUser().getId())