Skip to content

Commit

Permalink
[BE] dev 서버에 구현사항을 배포한다. (#1085)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdgur0906 authored Jan 20, 2025
2 parents 8205eca + 86113bf commit e14ecf1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ public List<Article> readArticles() {

@CachePut(cacheNames = ARTICLE, key = "#id")
@Transactional
public void updateArticle(Long id, Article updateArticle) {
public Article updateArticle(Long id, Article updateArticle) {
Article article = articleRepository.getById(id);
article.change(updateArticle);
return article;
}

@CacheEvict(cacheNames = ARTICLE, key = "#id")
Expand Down

0 comments on commit e14ecf1

Please sign in to comment.