Skip to content

Commit

Permalink
๐Ÿ› Bug: ๋ณ€๊ฒฝ๋œ DTO field ๋ช… ์ ์šฉ
Browse files Browse the repository at this point in the history
  • Loading branch information
HyoBN committed Jun 30, 2024
1 parent 6eb14e3 commit 67dbe82
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;
import treehouse.server.api.comment.implementation.CommentCommandAdapter;
import treehouse.server.api.comment.implementation.CommentQueryAdapter;
Expand All @@ -33,10 +32,8 @@
import treehouse.server.global.exception.GlobalErrorCode;
import treehouse.server.global.exception.ThrowClass.CommentException;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collector;
import java.util.stream.Collectors;

@Service
Expand Down Expand Up @@ -128,7 +125,7 @@ public CommentResponseDTO.CommentIdResponseDto createComment(User user, Long tre
Post post = postQueryAdapter.findById(postId);
Member writer = memberQueryAdapter.findByUserAndTreehouse(user, treehouse);

Comment comment = CommentMapper.toComment(writer, post, request.getComment());
Comment comment = CommentMapper.toComment(writer, post, request.getContext());
Long commentId = commentCommandAdapter.createComment(comment).getId();
return CommentMapper.toIdResponseDto(commentId);
}
Expand Down

0 comments on commit 67dbe82

Please sign in to comment.