-
Notifications
You must be signed in to change notification settings - Fork 53
[BUG] Null Values Returned for Book and Member When Borrowing a Book #23
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersgssocGirlScript Summer Of CodeGirlScript Summer Of Codegssoc-exthacktoberfesthacktoberfest-acceptedlevel1GirlScript Summer Of Code - 15 pointsGirlScript Summer Of Code - 15 pointsstatus: ready for devYou can asked for this issue to be assigned (if not already assigned)You can asked for this issue to be assigned (if not already assigned)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersgssocGirlScript Summer Of CodeGirlScript Summer Of Codegssoc-exthacktoberfesthacktoberfest-acceptedlevel1GirlScript Summer Of Code - 15 pointsGirlScript Summer Of Code - 15 pointsstatus: ready for devYou can asked for this issue to be assigned (if not already assigned)You can asked for this issue to be assigned (if not already assigned)
Is this a new issue?
Bug Description
When borrowing a book via the POST request to http://localhost:8080/api/borrowings, the response contains null values for both the book and member details. The expected behavior is to return the complete details of the book and member, but instead, the following response is received:
{ "borrowingId": 1, "book": { "bookId": 2, "title": null, "author": null, "isbn": null, "publisher": null, "publishedYear": 0, "genre": null, "copiesAvailable": 0 }, "fine": null, "member": { "memberId": 2, "name": null, "email": null, "password": null, "role": null, "membershipDate": null }, "borrowDate": "2024-09-05T17:37:49.623+00:00", "dueDate": "2024-09-20T17:37:49.623+00:00", "returnDate": null }Steps to Reproduce
Expected Behavior