Skip to content

Commit

Permalink
fix/ finish tutoring (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
seongyunlee authored Oct 11, 2023
1 parent d7aa0fe commit 828431d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/tutoring/tutoring.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,15 @@ export class TutoringService {
teacherId,
);

await this.socketRepository.sendMessageToBothUser(
tutoring.teacherId,
tutoring.studentId,
chatRoomId,
'text',
JSON.stringify(startMessage),
);
if (tutoring.status == 'reserved') {
await this.socketRepository.sendMessageToBothUser(
tutoring.teacherId,
tutoring.studentId,
chatRoomId,
'text',
JSON.stringify(startMessage),
);
}

return await this.classroomInfo(tutoring.id, teacherId);
} catch (error) {
Expand Down

0 comments on commit 828431d

Please sign in to comment.