Skip to content

Commit

Permalink
style : 코드수정
Browse files Browse the repository at this point in the history
주석 처리 부분 삭제
  • Loading branch information
lljh1992 committed Oct 23, 2023
1 parent f6cb8a6 commit 6f3b163
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/main/java/HookKiller/server/board/service/ArticleService.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,6 @@ public class ArticleService {
* @param language
* @return
*/
// @Transactional(readOnly = true)
// public List<ArticleRequestDto> getArticleList(int page, int articleLimit, Long boardId, LanguageType language) {
// // boardId로 board에 해당하는 Article들을 모두 뽑아온다
// Board board = boardRepository.findById(boardId).orElseThrow(() -> BoardNotFoundException.EXCEPTION);
// Page<Article> articleList = articleRepository.findAllByBoardAndArticleStatusOrderByCreateAtDesc(board, PUBLIC, PageRequest.of(page, articleLimit));
// return articleList.stream()
// .map(article ->
// ArticleRequestDto.of(article, articleContentRepository
// .findByArticleAndLanguage(article, language)
// .orElseThrow(() -> ArticleContentNotFoundException.EXCEPTION)))
// .toList();
// }

@Transactional(readOnly = true)
public Map<String, Object> getArticleList(int page, int articleLimit, Long boardId, LanguageType language) {
// boardId로 board에 해당하는 Article들을 모두 뽑아온다
Expand Down

0 comments on commit 6f3b163

Please sign in to comment.