Skip to content

Commit

Permalink
fix: cartItem key in OrderService
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-miazina committed May 26, 2024
1 parent 0e8dd65 commit d2949a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private void pickUpItemsIntoOrder(Order order) {
}

private OrderItem createOrderItemFrom(CartItem cartItem, Order order) {
Book book = cartItem.getId().getBook();
Book book = cartItem.getBook();

OrderItem orderItem = new OrderItem();
orderItem.setOrder(order);
Expand Down

0 comments on commit d2949a5

Please sign in to comment.