diff --git a/src/main/java/com/beotkkot/qtudy/service/posts/PostsService.java b/src/main/java/com/beotkkot/qtudy/service/posts/PostsService.java index d38a536..939e599 100644 --- a/src/main/java/com/beotkkot/qtudy/service/posts/PostsService.java +++ b/src/main/java/com/beotkkot/qtudy/service/posts/PostsService.java @@ -200,6 +200,12 @@ public ResponseEntity patchPost(Long postId, Long kaka } post.patchPost(dto); + + // 요약 + String summary = summaryService.summary(dto.getContent()); + post.setContent(dto.getContent()); + post.setSummary(summary); + postsRepo.save(post); } catch (Exception exception) {