update
This commit is contained in:
@@ -40,11 +40,7 @@ public class ArticleService {
|
|||||||
.map(article -> new ArticleResponseDto(article, user))
|
.map(article -> new ArticleResponseDto(article, user))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
int total = articleRepository.findTotal();
|
return new PageImpl<>(contents, pageable, articleRepository.findTotal());
|
||||||
|
|
||||||
Page<ArticleResponseDto> page = new PageImpl<>(contents, pageable, total);
|
|
||||||
|
|
||||||
return page;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArticleResponseDto findById(Long id, User user) {
|
public ArticleResponseDto findById(Long id, User user) {
|
||||||
|
|||||||
Reference in New Issue
Block a user