Skip to content

Commit

Permalink
fix(service): 존재하는 태그를 가져오도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HoeSeong123 committed Aug 22, 2024
1 parent 275d27a commit 39063b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void createTags(Template template, List<String> tagNames) {
List<String> existingTags = tagRepository.findNameByNamesIn(tagNames);
templateTagRepository.saveAll(
existingTags.stream()
.map(Tag::new)
.map(tagRepository::fetchByName)
.map(tag -> new TemplateTag(template, tag))
.toList()
);
Expand Down

0 comments on commit 39063b3

Please sign in to comment.