diff --git a/ch06/tacocloud-api/src/main/java/tacos/web/api/OrderApiController.java b/ch06/tacocloud-api/src/main/java/tacos/web/api/OrderApiController.java index bc4573cb..c053c331 100644 --- a/ch06/tacocloud-api/src/main/java/tacos/web/api/OrderApiController.java +++ b/ch06/tacocloud-api/src/main/java/tacos/web/api/OrderApiController.java @@ -63,7 +63,7 @@ public Order patchOrder(@PathVariable("orderId") Long orderId, order.setDeliveryState(patch.getDeliveryState()); } if (patch.getDeliveryZip() != null) { - order.setDeliveryZip(patch.getDeliveryState()); + order.setDeliveryZip(patch.getDeliveryZip()); } if (patch.getCcNumber() != null) { order.setCcNumber(patch.getCcNumber());