Skip to content

Derive returned status from returnDate #10

@NikosPoly

Description

@NikosPoly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions