diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/service/group/FridgeService.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/service/group/FridgeService.java index f04bcb487e2d9ae268d9aca92517676f841a4890..089dc8a0b80e14197a3d49732871492b25e1698d 100644 --- a/src/main/java/ntnu/idatt2016/v233/SmartMat/service/group/FridgeService.java +++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/service/group/FridgeService.java @@ -202,6 +202,7 @@ public class FridgeService { } groupRepository.save(group); return Optional.of(wasteRepository.save(Waste.builder() + .buyPrice(fridgeProductAsso1.getBuyPrice()) .amount(fridgeProductAsso1.getAmount()) .unit(fridgeProductAsso1.getEan().getUnit()) .ean(fridgeProductAsso1.getEan())