diff --git a/src/main/java/gwangjang/server/domain/contents/domain/service/ContentsServiceImpl.java b/src/main/java/gwangjang/server/domain/contents/domain/service/ContentsServiceImpl.java index 6de8d7f..b1acd6b 100644 --- a/src/main/java/gwangjang/server/domain/contents/domain/service/ContentsServiceImpl.java +++ b/src/main/java/gwangjang/server/domain/contents/domain/service/ContentsServiceImpl.java @@ -163,7 +163,7 @@ public List getContents(ApiType type) { } public List getContentsTitle(String issue, ApiType type) { - List contents = contentsRepository.findByIssueTitleLikeAndType("%" + issue + "%", type); + List contents = contentsRepository.findByIssueTitleLikeAndType("%" + issue + "%", type).subList(0,20); return contents.stream() .map(contentsMapper::toDto) .collect(Collectors.toList());