Skip to content

Commit

Permalink
refactor : healthMetricCount 변수명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
13wjdgk committed Nov 4, 2023
1 parent 724fbc5 commit cb99fe9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public class PointService {
*/
public void addHealthMetricPoint(String oauthId, LocalDate date, GroupCode groupCode) {
User user = userSearchService.findUserByOauthId(oauthId);
int healthMetric = healthMetricSearchService.findByGroupCode(oauthId, groupCode, date);
if (healthMetric == 1) {
int healthMetricCount = healthMetricSearchService.findByGroupCode(oauthId, groupCode, date);
if (healthMetricCount == 1) {
addPointEvent(EarnPoint.findByGroupCode(groupCode).getTitle(), user);
}
}
Expand Down

0 comments on commit cb99fe9

Please sign in to comment.