Skip to content

Commit

Permalink
Merge pull request #40 from goormthon-Univ/feature/39
Browse files Browse the repository at this point in the history
[Refactor] ํฌ์ŠคํŠธ ์ˆ˜์ • ์‹œ ๊ธ€ ์žฌ์š”์•ฝ
  • Loading branch information
Ahyun0326 committed Mar 22, 2024
2 parents 06a3cff + 0d15ebf commit 62f9de7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@ public ResponseEntity<? super PostsResponseDto> 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) {
Expand Down

0 comments on commit 62f9de7

Please sign in to comment.