Skip to content

Commit

Permalink
Merge pull request #142 from inje-megabrain/feat/post_api
Browse files Browse the repository at this point in the history
댓글 수정DTO 오타 수정
  • Loading branch information
sleeg00 authored Mar 20, 2024
2 parents 05bbdbd + 811f417 commit 27864b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/example/just/Dao/Post.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ public void changePost(PutPostDto postDto, Member member, Post post) {
this.secret = postDto.getSecret();
this.postContent = postDto.getPost_content();
this.hashTagMaps = new ArrayList<>();
for (int i = 0; i < postDto.getHash_tage().size(); i++) { //여기 문제
for (int i = 0; i < postDto.getHash_tag().size(); i++) { //여기 문제
HashTagMap hashTagMap = new HashTagMap();
hashTagMap.setPost(this);
hashTagMap.setHashTag(new HashTag(postDto.getHash_tage().get(i)));
hashTagMap.setHashTag(new HashTag(postDto.getHash_tag().get(i)));
this.addHashTagMaps(hashTagMap);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/example/just/Service/PostService.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public ResponsePutPostDto putPost(Long member_id, PutPostDto postDto) throws Not
checkPost.changePost(postDto, member, checkPost);

Post p = postRepository.save(checkPost);
saveHashTag(postDto.getHash_tage(), p);
saveHashTag(postDto.getHash_tag(), p);

postContentESRespository.save(new PostDocument(checkPost));

Expand Down

0 comments on commit 27864b6

Please sign in to comment.