Skip to content

Commit

Permalink
#104 [fix] 필명 프로필 생성 시 curious Count 초기화
Browse files Browse the repository at this point in the history
#104 [fix] 필명 프로필 생성 시 curious Count 초기화
  • Loading branch information
sohyundoh authored Jan 12, 2024
2 parents e2e9793 + 21c110f commit be3d863
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ public void decreaseTotalCuriousCount() {
private WriterName(
final Moim moim,
final String name,
final User user
final User user,
final int curiousCount
) {
this.moim = moim;
this.name = name;
this.writer = user;
this.totalCuriousCount = curiousCount;
}

public static WriterName of(
Expand All @@ -57,6 +59,8 @@ public static WriterName of(
return WriterName.builder()
.moim(moim)
.name(name)
.user(user).build();
.user(user)
.curiousCount(0)
.build();
}
}

0 comments on commit be3d863

Please sign in to comment.