From a20ff58c009be217528f50a2f2bff0fc078f1699 Mon Sep 17 00:00:00 2001 From: ZemenFidel <31307518+samabraha@users.noreply.github.com> Date: Mon, 2 Nov 2020 05:24:31 +0100 Subject: [PATCH] Fixed order.setDeliveryZip argument. --- .../src/main/java/tacos/web/api/OrderApiController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());