We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7013ef9 commit 8bdaaffCopy full SHA for 8bdaaff
src/main/java/com/somemore/community/service/command/DeleteCommunityBoardService.java
@@ -22,7 +22,7 @@ class DeleteCommunityBoardService implements DeleteCommunityBoardUseCase {
22
23
@Override
24
public void deleteCommunityBoard(UUID writerId, Long id) {
25
- CommunityBoard communityBoard = communityBoardRepository.getCommunityBoardWithId(id)
+ CommunityBoard communityBoard = communityBoardRepository.findById(id)
26
.orElseThrow(() -> new BadRequestException(NOT_EXISTS_COMMUNITY_BOARD.getMessage()));
27
28
validateWriter(communityBoard, writerId);
0 commit comments