Skip to content

Commit

Permalink
refactor(BoardRegisterService): 중복된 해시태그 등록 가능 검사 삭제 및 코드컨벤션 준수
Browse files Browse the repository at this point in the history
  • Loading branch information
mingmingmon committed Dec 24, 2024
1 parent be6d91d commit fb49e64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public String registerBoard(BoardRequestDto requestDto) throws PermissionDeniedE

Board savedBoard = registerBoardPort.save(board);

if (savedBoard.isDevelopmentQna() && requestDto.getHashtagIdList() != null) {
if (requestDto.getHashtagIdList() != null) {
registerBoardHashtagUseCase.registerBoardHashtag(
boardHashtagDtoMapper.toDto(savedBoard.getId(), requestDto.getHashtagIdList()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public void validateAccessPermissionForCreation(MemberDetailedInfoDto currentMem
}
}

public void validateBoardHashtagRegistration(List<Long> hashtagIdList) {
if (!isDevelopmentQna() && (hashtagIdList != null && !hashtagIdList.isEmpty())) {
public void validateBoardHashtagRegistration(List<Long> hashtagIds) {
if (!isDevelopmentQna() && (hashtagIds != null && !hashtagIds.isEmpty())) {
throw new InvalidBoardCategoryHashtagException("개발질문 게시판에만 해시태그를 등록할 수 있습니다.");
}
}
Expand Down

0 comments on commit fb49e64

Please sign in to comment.