diff --git a/src/main/java/catering/order/OrderController.java b/src/main/java/catering/order/OrderController.java index 4a8445c..247517a 100644 --- a/src/main/java/catering/order/OrderController.java +++ b/src/main/java/catering/order/OrderController.java @@ -132,7 +132,9 @@ public class OrderController { return userAccount.map(account -> { CustomOrder myOrder = new CustomOrder(account.getId(), cart); + cart.addItemsTo(myOrder); orderManagement.payOrder(myOrder); // TODO: change this later + orderManagement.completeOrder(myOrder); cart.clear(); List myOrders = orderManagement.findBy(account).stream().collect(Collectors.toList());