Commit Graph

1 Commits

Author SHA1 Message Date
Kazem Alghasi
7faa778e22 refactor(api): update shipment review logic to update existing reviews
Refactor `ShipmentReviewService` to update the existing pending review
instead of creating a new `ShipmentReview` record during the approval
and rejection processes. This ensures that the review lifecycle
correctly finalizes the current pending revision.

- Implement `getPendingReview` to retrieve the active pending review
- Update `approve` to modify the existing review record
- Update `reject` to modify the existing review record
- Add documentation clarifying when new revisions are created versus
  when existing ones are finalized
2026-09-29 04:37:55 +03:30