Skip to content

Commit

Permalink
[COZY-432] hotfix: isExit 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
suuu0719 committed Dec 3, 2024
1 parent dd247d1 commit f9a7472
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ public class Mate extends BaseTimeEntity {
@ManyToOne(fetch = FetchType.LAZY)
private Member member;

private boolean isExit = false;

// 룸메이트 대기상태 조회를 위해 EntryStatus를 추가하였습니다.
@Enumerated(EnumType.STRING)
private EntryStatus entryStatus = EntryStatus.PENDING;
Expand All @@ -55,7 +53,6 @@ public void setEntryStatus(EntryStatus entryStatus) {
}

public void quit() {
this.isExit = true;
setEntryStatus(EntryStatus.EXITED);
}

Expand All @@ -67,7 +64,4 @@ public void setNotRoomManager() {
this.isRoomManager = false;
}

public void setNotExit() {
this.isExit = false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ public void joinRoom(Long roomId, Long memberId) {
// 재입장 처리
Mate exitingMate = existingMate.get();
exitingMate.setEntryStatus(EntryStatus.JOINED);
exitingMate.setNotExit();
mateRepository.save(exitingMate);
room.arrive();
room.isRoomFull();
Expand Down Expand Up @@ -334,7 +333,6 @@ public void sendInvitation(Long inviteeId, Long inviterId) {
if (invitee.isPresent()) {
Mate mate = invitee.get();
mate.setEntryStatus(EntryStatus.INVITED);
mate.setNotExit();
mateRepository.save(mate);
} else {
Mate mate = MateConverter.toInvitation(room, inviteeMember, false);
Expand Down Expand Up @@ -475,7 +473,6 @@ public void requestToJoin(Long roomId, Long memberId) {
if (existingMate.isPresent()) {
Mate mate = existingMate.get();
mate.setEntryStatus(EntryStatus.PENDING);
mate.setNotExit();
mateRepository.save(mate);
} else {
Mate mate = MateConverter.toPending(room, member, false);
Expand Down

0 comments on commit f9a7472

Please sign in to comment.