Skip to content

Commit

Permalink
feature: 채팅 입장 (#45)
Browse files Browse the repository at this point in the history
feature: 채팅 입장 (#45)
  • Loading branch information
Lee-Dahyeon authored Nov 16, 2024
2 parents d34f861 + fee8ed3 commit 4d0903a
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import com.hyunsolution.dangu.user.domain.UserRepository;
import com.hyunsolution.dangu.workspace.domain.Workspace;
import com.hyunsolution.dangu.workspace.domain.WorkspaceRepository;
import java.util.List;
import com.hyunsolution.dangu.workspace.exception.WorkspaceNotFoundException;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
Expand All @@ -32,11 +32,13 @@ public void changeMatching(Long id, Long workspaceId) {
participantOptional.accept();

// participant테이블에서 roomNumber로 들어온 숫자를 통해 누가 있는지 파악
List<Long> participantIds = participantRepository.findParticipantIdByWorkspaceId(workspaceId);
List<Long> participantIds =
participantRepository.findParticipantIdByWorkspaceId(workspaceId);

// 방안에 모든 참가자가 "확정"버튼을 눌렀는지 확인
for (Long participant : participantIds) {
boolean mathingCheck = participantRepository.existsByIdAndParticipantMatchTrue(participant);
boolean mathingCheck =
participantRepository.existsByIdAndParticipantMatchTrue(participant);
if (!mathingCheck) {
return;
}
Expand Down

0 comments on commit 4d0903a

Please sign in to comment.