From f3f0a21665c8296af2a8385aa191660e2b380afb Mon Sep 17 00:00:00 2001 From: jaewon926 Date: Tue, 23 Jul 2024 15:51:09 +0900 Subject: [PATCH] =?UTF-8?q?feat:DiaryService=20"=EB=8B=A4=EC=9D=B4?= =?UTF-8?q?=EC=96=B4=EB=A6=AC=20=EB=82=98=EA=B0=80=EA=B8=B0=20=EC=A1=B0?= =?UTF-8?q?=EA=B1=B4=EB=AC=B8=20=EC=88=98=EC=A0=95"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/elice/ustory/domain/diary/service/DiaryService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/elice/ustory/domain/diary/service/DiaryService.java b/src/main/java/com/elice/ustory/domain/diary/service/DiaryService.java index ff2e536d..2bf04872 100644 --- a/src/main/java/com/elice/ustory/domain/diary/service/DiaryService.java +++ b/src/main/java/com/elice/ustory/domain/diary/service/DiaryService.java @@ -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);