Skip to content

Commit

Permalink
return order number in response
Browse files Browse the repository at this point in the history
  • Loading branch information
tkeburia committed Dec 11, 2023
1 parent 0c1697e commit 768d07a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public String placeOrder(OrderRequest orderRequest) {
orderRepository.save(order);
kafkaTemplate.send("notificationTopic", new OrderPlacedEvent(order.getOrderNumber()));
log.info(String.format("Order Number %s Placed Successfully", order.getOrderNumber()));
return "Order Placed";
return String.format("Order Number %s Placed Successfully", order.getOrderNumber());
}
else {
throw new IllegalArgumentException("Product is not in stock, please try again later");
Expand Down

0 comments on commit 768d07a

Please sign in to comment.