Skip to content

Commit

Permalink
Merge pull request #127 from CAUSOLDOUTMEN/feature/122-fix
Browse files Browse the repository at this point in the history
Fix: 기준섭취량 자동계산 옵션 발동되지 않던 버그 수정 (#122)
  • Loading branch information
synoti21 authored Nov 28, 2023
2 parents f3bf91c + f13f6f1 commit 20bc227
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/diareat/diareat/user/domain/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Integer> standard = UserTypeUtil.getStanardByUserType(this.type);
this.baseNutrition = BaseNutrition.createNutrition(standard.get(0), standard.get(2), this.weight, standard.get(1));
}
}

Expand Down

0 comments on commit 20bc227

Please sign in to comment.