From 81c437aabca331e39206afea7bfbc654b4f6599f Mon Sep 17 00:00:00 2001 From: Ahn Jiwan Date: Thu, 5 Oct 2023 00:12:25 +0900 Subject: [PATCH] :pencil2: fix: totalFat -> totalKcal (#9) found on unit test --- .../diareat/diareat/food/dto/ResponseNutritionSumByDateDto.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/diareat/diareat/food/dto/ResponseNutritionSumByDateDto.java b/src/main/java/com/diareat/diareat/food/dto/ResponseNutritionSumByDateDto.java index 0229a24..5eb8e4c 100644 --- a/src/main/java/com/diareat/diareat/food/dto/ResponseNutritionSumByDateDto.java +++ b/src/main/java/com/diareat/diareat/food/dto/ResponseNutritionSumByDateDto.java @@ -17,6 +17,6 @@ public class ResponseNutritionSumByDateDto { double ratioFat; public static ResponseNutritionSumByDateDto of (int totalKcal, int totalCarbohydrate, int totalProtein, int totalFat, double ratioKcal, double ratioCarbohydrate, double ratioProtein, double ratioFat){ - return new ResponseNutritionSumByDateDto(totalFat, totalCarbohydrate, totalProtein, totalFat, ratioKcal, ratioCarbohydrate, ratioProtein, ratioFat); + return new ResponseNutritionSumByDateDto(totalKcal, totalCarbohydrate, totalProtein, totalFat, ratioKcal, ratioCarbohydrate, ratioProtein, ratioFat); } }