Skip to content

Commit

Permalink
Merge pull request #82 from KNU-HAEDAL-Website/fix-get-single-post-ap…
Browse files Browse the repository at this point in the history
…i-issue-81

Fix: post 단일 조회 API createDate 반환 문제
  • Loading branch information
tfer2442 authored Aug 18, 2024
2 parents 7cd1b62 + 668f4c2 commit aeb7f84
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 aeb7f84

Please sign in to comment.