Skip to content

Commit 08ba261

Browse files
authored
Merge pull request #148 from CommitField/feat/#139
fix: ์ถ”๊ฐ€ ์ˆ˜์ •
2 parents 16d4f42 + f32968c commit 08ba261

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

โ€Žsrc/main/java/cmf/commitField/domain/user/service/UserService.javaโ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ public boolean getExpUser(String username, long commitCount) {
117117
LocalDateTime.of(2025,05,31,23,59)
118118
).getTotalCommitContributions();
119119

120+
// ๊ฒฝํ—˜์น˜ ์ฆ๊ฐ€ ํ›„, ๋งŒ์•ฝ ๋ ˆ๋ฒจ์—…ํ•œ๋‹ค๋ฉด ๋ ˆ๋ฒจ์—… ์‹œํ‚จ๋‹ค.
121+
user.addExp(commitCount);
122+
120123
// ๊ฒฝํ—˜์น˜ ๋™๊ธฐํ™”๊ฐ€ ์ œ๋Œ€๋กœ ๋˜์–ด ์žˆ์ง€ ์•Š์œผ๋ฉด ๋™๊ธฐํ™”ํ•ด์ค€๋‹ค.
121124
if(user.getSeasonCommitCount() != seasonCommitCount){
122125
user.setSeasonCommitCount(seasonCommitCount);
123126
}
124-
125-
// ๊ฒฝํ—˜์น˜ ์ฆ๊ฐ€ ํ›„, ๋งŒ์•ฝ ๋ ˆ๋ฒจ์—…ํ•œ๋‹ค๋ฉด ๋ ˆ๋ฒจ์—… ์‹œํ‚จ๋‹ค.
126-
user.addExp(commitCount);
127127
userRepository.save(user);
128128
return !(user.getTier().equals(Tier.getLevelByExp(user.getSeasonCommitCount())));
129129
}

0 commit comments

Comments
ย (0)