Skip to content

Commit

Permalink
fix : seed null -> 0으로 초기화
Browse files Browse the repository at this point in the history
  • Loading branch information
kjy-asl committed Sep 27, 2023
1 parent af0eb9f commit 177cad9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@Builder
public record HomeResponseDTO(
String nickName,
Long seed
int seed
) {
public static HomeResponseDTO of(User user){
return HomeResponseDTO.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public record UserMyPageResponseDTO(
Long userId,
String nickname,
Long seed,
int seed,
List<UserMyPostResponseVO> posts,
List<UserMyScrapResponseVO> scraps)
{
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/blow/server/api/entity/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class User {
private String nickname;

@Column(name= "seed")
private Long seed=0L;
private int seed;

@Column(name = "role")
@Enumerated(EnumType.STRING)
Expand Down Expand Up @@ -69,6 +69,7 @@ public User(String email, String password, String nickname) {
this.email = email;
this.password = password;
this.nickname = nickname;
this.seed = 0;
}

public void updateFCMToken(String fcmToken) { this.FCMToken = fcmToken; }
Expand Down

0 comments on commit 177cad9

Please sign in to comment.