Currently Loan has a returned boolean that needs to be manually set to true when
a book is returned. This is redundant since returnDate already captures this information.
Tasks
- Keep returned boolean field in Loan for API clarity
- Set returned = true automatically in the service layer when returnDate is set, never manually
- Remove the need to send "returned": true in PATCH requests — setting returnDate is sufficient
Currently Loan has a returned boolean that needs to be manually set to true when
a book is returned. This is redundant since returnDate already captures this information.
Tasks