Skip to content

Commit

Permalink
fix: 사용자 exp 초기화 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leejuae committed Jul 26, 2024
1 parent b75e9a7 commit 9393f10
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User extends BaseTimeEntity {

@Id
Expand All @@ -34,7 +35,8 @@ public class User extends BaseTimeEntity {
private String profileImage;

@Column(nullable = false)
private Integer exp;
@Builder.Default
private Integer exp = 0;

@Column
private Integer commitDays;
Expand Down Expand Up @@ -75,9 +77,4 @@ public void updateTotalCommitCount(Integer totalCommitCount){
public void updateTodayCommitCount(Integer todayCommitCount){
this.todayCommitCount=todayCommitCount;
}

public User(){
this.exp=0;
}

}

0 comments on commit 9393f10

Please sign in to comment.