diff --git a/src/main/java/com/keeper/homepage/domain/library/application/BorrowManageService.kt b/src/main/java/com/keeper/homepage/domain/library/application/BorrowManageService.kt index efc9a5594..d62d58b5f 100644 --- a/src/main/java/com/keeper/homepage/domain/library/application/BorrowManageService.kt +++ b/src/main/java/com/keeper/homepage/domain/library/application/BorrowManageService.kt @@ -58,7 +58,7 @@ class BorrowManageService( throw BusinessException(borrowId, "borrowId", ErrorCode.BORROW_STATUS_IS_NOT_REQUESTS) } - borrowInfo.changeBorrowStatus(대출반려) + borrowInfoRepository.delete(borrowInfo) borrowLogRepository.save(BookBorrowLog.of(borrowInfo, LogType.대출반려)) } diff --git a/src/test/java/com/keeper/homepage/domain/library/api/BorrowManageControllerTest.kt b/src/test/java/com/keeper/homepage/domain/library/api/BorrowManageControllerTest.kt index 00b2d5703..4ded5b642 100644 --- a/src/test/java/com/keeper/homepage/domain/library/api/BorrowManageControllerTest.kt +++ b/src/test/java/com/keeper/homepage/domain/library/api/BorrowManageControllerTest.kt @@ -424,7 +424,6 @@ class BorrowManageControllerTest : BorrowManageApiTestHelper() { ) ) ) - borrowInfo.borrowStatus.type shouldBe 대출반려 } @Test