Skip to content

Commit

Permalink
Merge pull request #23 from Leets-Official/22-bug-사용자-초기화-오류
Browse files Browse the repository at this point in the history
  • Loading branch information
leejuae authored Jul 26, 2024
2 parents b75e9a7 + 9393f10 commit 2e19983
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 2e19983

Please sign in to comment.