Skip to content

Commit

Permalink
fix: post 단일 조회 API createDate 반환 문제 (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfer2442 committed Aug 18, 2024
1 parent 7cd1b62 commit 668f4c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/haedal/haedalweb/service/PostService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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())
Expand Down

0 comments on commit 668f4c2

Please sign in to comment.