-
Notifications
You must be signed in to change notification settings - Fork 2
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
[ Team 관련 API ] 팀 관련 API 구현 #120
Conversation
Team Create Page 에서 입력한 값대로 팀 생성 되는지 확인하기 위해 버튼 클릭 이벤트 , ref 추가
테스트 하기 위해 초대하기 모달 생성 , api 수정
테스트 하기 위해 teamSettingPage 로직 수정 axios 에서 originTeamName은 기존 팀 이름을 전달하면 됨
Team Create Page 에서 입력한 값대로 팀 생성 되는지 확인하기 위해 버튼 클릭 이벤트 , ref 추가
테스트 하기 위해 초대하기 모달 생성 , api 수정
테스트 하기 위해 teamSettingPage 로직 수정 axios 에서 originTeamName은 기존 팀 이름을 전달하면 됨
offset 을 이용해서 채팅 내역을 추가로 가져오게 만들었음
return ( | ||
<div css={InputLabelStyle}> | ||
<p css={LabelStyle}>{label}</p> | ||
<Input placeholder={placeholder} /> | ||
<Input placeholder={placeholder} ref={refProps} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Input value를 UseRef로 관리하는 이유가 뭐죠??
location, | ||
leader, | ||
}); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리더 ID가 자기 자신이어야하지 않나?? 굳이 리더 ID를 입력해야하는건가 싶음.
console.log(uid); | ||
const data = await findChatRoomInfo({ uid }); //[chatroomId, member=[]] | ||
//[chatroomId,member=[],chatMessages[]] | ||
res.send(data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try/catch로 에러 대비해야하지않으려나????
return Participant.findAll(query({ chatRoomId })); | ||
}); | ||
const memberData = await Promise.all(promiseArr); | ||
const filteredMemberData = memberData.map((chatRoomMember) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
처음 db에 접근해서 얻어온 값에 대해 join을 할 수 없어서 db 접근을 여러번해야하는건가?
개발 내용