Skip to content

Commit 88527c0

Browse files
committed
feat(Volunteer): 봉사 시간, 봉사 횟수 업데이트 추가
1 parent 1629402 commit 88527c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/somemore/volunteer/domain/Volunteer.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ public void updateWith(VolunteerProfileUpdateRequestDto dto, String imgUrl) {
6565
this.imgUrl = imgUrl;
6666
}
6767

68+
public void updateVolunteerStats(int hours, int count) {
69+
this.totalVolunteerHours += hours;
70+
this.totalVolunteerCount += count;
71+
}
72+
6873
@Builder
6974
private Volunteer(
7075
OAuthProvider oauthProvider,

0 commit comments

Comments
 (0)