diff --git a/order/src/main/java/com/microservices/order_service/service/PricingService.java b/order/src/main/java/com/microservices/order_service/service/PricingService.java index 8160ba23..dae9db43 100644 --- a/order/src/main/java/com/microservices/order_service/service/PricingService.java +++ b/order/src/main/java/com/microservices/order_service/service/PricingService.java @@ -17,14 +17,14 @@ public class PricingService { private WebClient webClient; public PricingService(WebClient.Builder webClientBuilder) { - this.webClient = webClientBuilder.baseUrl("http://localhost:8086/pricing/cart-total").build(); + this.webClient = webClientBuilder.baseUrl("http://localhost:8086/pricing/purchase-total").build(); } public cartResponse checkPrice(List cartItems) { return webClient.post() - .uri("http://localhost:8086/pricing/cart-total") + .uri("http://localhost:8086/pricing/purchase-total") .bodyValue(cartItems) .retrieve() .bodyToMono(new ParameterizedTypeReference() {})