Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ public TeachingMapCreateResponse createTeachingMap(Long userId, TeachingMapCreat
if (material == null) {
throw new GeneralException(TeachingMapErrorCode.AI_RESULT_MATERIAL_MISMATCH);
}
return TeachingMapStep.create(teachingMap, material, node.step(), node.title(), node.aiGuide());
String title = (node.title() == null || node.title().isBlank())
? material.getTitle() // 자료 원제목으로 대체
: node.title();
return TeachingMapStep.create(teachingMap, material, node.step(), title, node.aiGuide());
})
.toList();
stepRepository.saveAll(steps);
Expand Down
Loading