Skip to content

Commit

Permalink
HOTFIX: 기존의 커밋 횟수와 같이 저장되는 현상 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
yechan-kim committed Aug 1, 2024
1 parent 88a634f commit b11a3e5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ public Commit(LocalDateTime commitDate, Integer cnt, User user) {
}

public void updateCnt(Integer cnt) {
this.cnt = this.cnt + cnt;
markAsUncalculated();
if (!this.cnt.equals(cnt)) {
this.cnt = cnt;
markAsUncalculated();
}
}

public void markAsCalculated() {
Expand Down

0 comments on commit b11a3e5

Please sign in to comment.