Skip to content

Commit

Permalink
Merge pull request #387 from KEEPER31337/Feature/대출-반려-기획-수정
Browse files Browse the repository at this point in the history
feat: 대출 반려시 대출 정보 row 제거
  • Loading branch information
gusah009 authored Oct 13, 2023
2 parents ccce1e8 + b85a5fb commit a2ecaa7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.대출반려))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ class BorrowManageControllerTest : BorrowManageApiTestHelper() {
)
)
)
borrowInfo.borrowStatus.type shouldBe 대출반려
}

@Test
Expand Down

0 comments on commit a2ecaa7

Please sign in to comment.