Skip to content

Commit 4675886

Browse files
fix bug
1 parent 5d83483 commit 4675886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/amigoscode/product/ProductService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public UUID saveNewProduct(NewProductRequest product) {
5151
product.stockLevel()
5252
);
5353
productRepository.save(newProduct);
54-
return null;
54+
return id;
5555
}
5656

5757
Function<Product, ProductResponse> mapToResponse() {

0 commit comments

Comments
 (0)