Skip to content

Commit

Permalink
Remettre les article dans le stock apres un paiement expiré #17 - fix…
Browse files Browse the repository at this point in the history
… unit tests
  • Loading branch information
benjaminpochat committed Jul 3, 2024
1 parent f87bf1c commit 6d1bc9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private void checkAvailability(Order order) {
}

private void updateQuantitiesSold(Order order) {
order.getItems().stream()
orderItemRepository.findByOrder(order).stream()
.map(OrderItem::getPackageLot)
.forEach(packageLotQuantitySoldService::updateQuantitySold);
}
Expand Down

0 comments on commit 6d1bc9b

Please sign in to comment.