diff --git a/src/main/java/com/diareat/diareat/user/domain/User.java b/src/main/java/com/diareat/diareat/user/domain/User.java index 264d1ac..3bb31b7 100644 --- a/src/main/java/com/diareat/diareat/user/domain/User.java +++ b/src/main/java/com/diareat/diareat/user/domain/User.java @@ -119,6 +119,8 @@ public void updateUser(String name, int height, int weight, int age, int autoUpd this.age = age; if(autoUpdate == 1) { this.type = UserTypeUtil.decideUserType(this.gender, this.age); + List standard = UserTypeUtil.getStanardByUserType(this.type); + this.baseNutrition = BaseNutrition.createNutrition(standard.get(0), standard.get(2), this.weight, standard.get(1)); } }