Skip to content

Commit

Permalink
Merge pull request #81 from TelePigeon/fix/80
Browse files Browse the repository at this point in the history
[fix] 질문 생성 relation 분기처리 추가
  • Loading branch information
minwoo0419 authored Jun 6, 2024
2 parents 57a45da + d0e2a54 commit 659ff67
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ public Question create(final Profile profile){
if (Objects.equals(profile.getKeywords(), "-")){
throw new NotFoundException(NotFoundErrorCode.KEYWORD_NOT_FOUND);
}
String relation = receiver.getRelation() == null ? "지인" : receiver.getRelation().getContent();
String keyword = getRandomKeyword(profile);
String content = openAiService.createQuestion(
receiver.getRelation().getContent(),
relation,
keyword
);
Question question = questionSaver.create(Question.create(
Expand Down

0 comments on commit 659ff67

Please sign in to comment.