Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor #80 user entity에서 refreshToken 제거 #80

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/main/java/leets/weeth/domain/user/domain/entity/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ public class User extends BaseEntity {
@Enumerated(EnumType.STRING)
private Role role;

private String refreshToken;

Comment on lines -64 to -65
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다 !

private Integer attendanceCount;

private Integer absenceCount;
Expand All @@ -87,10 +85,6 @@ public void init() {
penaltyCount = 0;
}

public void updateRefreshToken(String updatedToken) {
this.refreshToken = updatedToken;
}

public void leave() {
this.status = Status.LEFT;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ public interface UserRepository extends JpaRepository<User, Long> {
boolean existsByTelAndIdIsNot(String tel, Long id);

List<User> findAllByStatusOrderByName(Status status);

Optional<User> findByRefreshToken(String refreshToken);
}