Skip to content
Snippets Groups Projects
Commit c2b3694e authored by Pedro Pablo Cardona Arroyave's avatar Pedro Pablo Cardona Arroyave
Browse files

Change was added

parent c5592cf8
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ public class FridgeService {
public Optional<Product> addProductToFridge(FridgeProductRequest fridgeProductRequest) {
Optional<Product> product = productService.getProductById(fridgeProductRequest.ean());
Optional<Fridge> fridge = fridgeRepository.findByGroupGroupId(fridgeProductRequest.groupId());
double price = 100.0;
double price = 10.0;
if(fridgeProductRequest.price() != 0.0){
price = fridgeProductRequest.price();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment