feat(purchase): refactor stock reservation expiration handling and update related tests

This commit is contained in:
2026-08-26 16:36:26 -03:00
parent 0d2198a3db
commit 09554b9f80
7 changed files with 19 additions and 29 deletions

View File

@@ -70,7 +70,7 @@ class CompleteCheckoutService
$purchase->update([
'status' => Purchase::STATUS_IN_REVIEW,
]);
$this->reservations->refreshForPurchase($purchase, null);
$this->reservations->clearExpirationForReview($purchase);
return $this->loadPurchase($purchase);
});