Skip to content

Commit 818b92a

Browse files
committed
refactor(community): 코드 리뷰 사항 반영
- getCommunityBoardById -> getCommunityCommentById
1 parent 20bc66f commit 818b92a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/somemore/community/service/comment/DeleteCommunityCommentService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class DeleteCommunityCommentService implements DeleteCommunityCommentUseC
2222
@Override
2323
public void deleteCommunityComment(UUID writerId, Long id) {
2424

25-
CommunityComment communityComment = getCommunityBoardById(id);
25+
CommunityComment communityComment = getCommunityCommentById(id);
2626

2727
validateWriter(communityComment, writerId);
2828

@@ -31,7 +31,7 @@ public void deleteCommunityComment(UUID writerId, Long id) {
3131
communityCommentRepository.save(communityComment);
3232
}
3333

34-
private CommunityComment getCommunityBoardById(Long id) {
34+
private CommunityComment getCommunityCommentById(Long id) {
3535
return communityCommentRepository.findById(id)
3636
.orElseThrow(() -> new BadRequestException(NOT_EXISTS_COMMUNITY_COMMENT.getMessage()));
3737
}

0 commit comments

Comments
 (0)