Skip to content

Commit ef0ee3b

Browse files
committed
Merge branch 'develop'
2 parents ba9deda + c9f8a7f commit ef0ee3b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/inu/codin/codin/domain/lecture/repository/LectureRepository.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public interface LectureRepository extends JpaRepository<Lecture, Long> {
5151
SELECT DISTINCT l FROM Lecture l
5252
LEFT JOIN FETCH l.tags
5353
LEFT JOIN FETCH l.reviews
54+
LEFT JOIN FETCH l.syllabus
5455
WHERE l.id=:lectureId
5556
""")
5657
Optional<Lecture> findLectureWithTagsAndReviewsById(Long lectureId);

src/main/java/inu/codin/codin/domain/lecture/service/LectureSummarizationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private String buildPrompt(Lecture lecture, String reviews, String tags) {
101101
lecture.getLectureType(),
102102
lecture.getEvaluation(),
103103
tags.isEmpty() ? "태그 없음" : tags,
104-
lecture.getSyllabus() == null ? "강의 계획서 없음" : lecture.getSyllabus(),
104+
lecture.getSyllabus() == null ? "강의 계획서 없음" : lecture.getSyllabus().getFullText(),
105105
reviews
106106
);
107107
}

0 commit comments

Comments
 (0)