Commit b96ca2f5 authored by Khai Yuan ​Liew's avatar Khai Yuan ​Liew

[AFP-66] Correct spelling error

parent 583b954c
......@@ -60,7 +60,7 @@ public class ProductService {
public Mono<Product> updateProductInventoryBySkuWareHouse(String sku, String status, int itemQuantity) {
System.out.printf("sku = %s, status = %s, itemquanity = %d \n", sku, status, itemQuantity);
if (status.equals("CANCELED")) {
if (status.equals("CANCELLED")) {
return productRepository.findBySku(sku)
.flatMap(dbProduct -> {
dbProduct.setAvailableStock(dbProduct.getAvailableStock() + itemQuantity);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment