Skip to content

Commit

Permalink
test: 로그 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
juyeong-s committed Oct 19, 2024
1 parent 2b5dc09 commit f0440f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/room/room.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,20 @@ export class RoomService {
}
public async create(meetingId: string) {
const meeting = await this.meetingService.find(meetingId);
console.log('미팅 정보 찾음: ', meeting);
const chatRoom = await this.repository.upsert(
{ 'meeting.id': meeting.id },
{ meeting },
);
console.log('채팅방 upsert: ', chatRoom);
const participantIds = this.getParticipantIds(meeting);
await this.userService.addRoom(chatRoom, participantIds);
console.log('addRoom 완료');
this.roomGateway.io.server
.of('/chat-rooms')
.in(participantIds)
.emit('room-append', { ...chatRoom, id: chatRoom._id, meeting });
console.log('생성 완료');
}

public async search(userId: string) {
Expand Down

0 comments on commit f0440f1

Please sign in to comment.