Skip to content

Commit

Permalink
Merge pull request #117 from UMC-ON/feat/chat
Browse files Browse the repository at this point in the history
fix: 동행 모집 오류 수정
  • Loading branch information
Haewonny authored Dec 5, 2024
2 parents 93ddc35 + 10a5074 commit 348cdcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public void completeRecruit(User user, Long roomId) {
// 2. companyParticipant status -> participant로 바꾸기
User userParticipant = chattingRoom.getChatUserOne();

CompanyParticipant companyParticipant = companyParticipantRepository.findByUser(userParticipant);
CompanyParticipant companyParticipant = companyParticipantRepository.findByUserAndCompanyPostId(userParticipant, companyPost.getId());

// 상태 업데이트
companyParticipant.setCompanyParticipantstatus(PARTICIPANT);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
@Repository
public interface CompanyParticipantRepository extends JpaRepository<CompanyParticipant, Long> {

CompanyParticipant findByUser(User user);
CompanyParticipant findByUserAndCompanyPostId(User userParticipant, Long companyPostId);
}

0 comments on commit 348cdcc

Please sign in to comment.