Skip to content

Commit

Permalink
🐛 [FIX] popularRate 쿼리에 포함 되도록 변경 #80
Browse files Browse the repository at this point in the history
  • Loading branch information
ddongseop committed Mar 28, 2024
1 parent a8a05e6 commit 7fe6df8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/main/java/org/sopt/lequuServer/domain/book/model/Book.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,21 @@ public void addFavorite(Favorite favorite) {
favorites.add(favorite);
}

private int popularRate = 0;
private int popularRate;

@Builder
public Book(String uuid, String favoriteName, String favoriteImage, String title, String description, String backgroundColor, Member member, int popularRate) {
public Book(String uuid, String favoriteName, String favoriteImage, String title, String description, String backgroundColor, Member member) {
this.uuid = uuid;
this.favoriteName = favoriteName;
this.favoriteImage = favoriteImage;
this.title = title;
this.description = description;
this.backgroundColor = backgroundColor;
this.member = member;
this.popularRate = popularRate;
this.popularRate = 0;
}

public static Book of(String uuid, String favoriteName, String favoriteImage, String title, String description, String backgroundColor, Member member, int popularRate) {
return new Book(uuid, favoriteName, favoriteImage, title, description, backgroundColor, member, popularRate);
public static Book of(String uuid, String favoriteName, String favoriteImage, String title, String description, String backgroundColor, Member member) {
return new Book(uuid, favoriteName, favoriteImage, title, description, backgroundColor, member);
}
}
Loading

0 comments on commit 7fe6df8

Please sign in to comment.