Skip to content

Commit

Permalink
feat:DiaryService "다이어리 나가기 조건문 수정"
Browse files Browse the repository at this point in the history
  • Loading branch information
jaewon0926 committed Jul 23, 2024
1 parent 8805510 commit f3f0a21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public ExitResponse exitDiary(Long userId, Long diaryId) {
throw new ForbiddenException(String.format(FORBIDDEN_DIARY_MESSAGE, diaryId));
}

if (diaryUser.getId().getDiary().getDiaryCategory() != DiaryCategory.INDIVIDUAL) {
if (diaryUser.getId().getDiary().getDiaryCategory() == DiaryCategory.INDIVIDUAL) {
return new ExitResponse(false);
} else {
diaryUserRepository.delete(diaryUser);
Expand Down

0 comments on commit f3f0a21

Please sign in to comment.