From 1ad50e9c4ed4564404e98c4910cc459292354942 Mon Sep 17 00:00:00 2001 From: Divyansh Singh Solanki <111523290+Divyansh123bn@users.noreply.github.com> Date: Thu, 3 Oct 2024 11:13:38 +0530 Subject: [PATCH] Update MemberService.java --- src/main/java/com/libraryman_api/member/MemberService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/libraryman_api/member/MemberService.java b/src/main/java/com/libraryman_api/member/MemberService.java index 96d1172..5b8817a 100644 --- a/src/main/java/com/libraryman_api/member/MemberService.java +++ b/src/main/java/com/libraryman_api/member/MemberService.java @@ -117,7 +117,7 @@ public void deleteMember(int memberId) { .orElseThrow(() -> new ResourceNotFoundException("Member not found")); // Check for outstanding fines - List outstandingFines = fineRepository.findByMemberIdAndIsPaidFalse(memberId); + List outstandingFines = fineRepository.findByMemberIdAndIsPaidFalse(memberId); if (!outstandingFines.isEmpty()) { throw new MemberDeletionException("Cannot delete member with outstanding fines."); }