Skip to content

Commit

Permalink
fix/ 지정 질문 올리면 만들어진 채팅 아이디 알려줌 (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
seongyunlee authored Oct 11, 2023
1 parent 828431d commit c15190b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/question/question.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ export class QuestionService {
questionId: questionId,
subTitle: `${createQuestionDto.schoolLevel} ${createQuestionDto.schoolSubject}`,
};
console.log(createQuestionDto.requestTutoringStartTime);
const requestMessage = {
startDateTime: createQuestionDto.requestTutoringStartTime.toISOString(),
};
Expand All @@ -126,9 +125,11 @@ export class QuestionService {
JSON.stringify(requestMessage),
);

return new Success('질문이 생성되었습니다.', question);
return new Success('질문이 생성되었습니다.', {
...question,
chattingId: chatRoomId,
});
} catch (error) {
console.log(error);
return new Fail(error.message);
}
}
Expand Down

0 comments on commit c15190b

Please sign in to comment.