Skip to content

Commit

Permalink
fix : 컨텐츠 리턴값 제한
Browse files Browse the repository at this point in the history
  • Loading branch information
seungueonn committed Nov 26, 2023
1 parent 534a628 commit 2a1f497
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public List<ContentsRes> getContents(ApiType type) {
}

public List<ContentsRes> getContentsTitle(String issue, ApiType type) {
List<Contents> contents = contentsRepository.findByIssueTitleLikeAndType("%" + issue + "%", type);
List<Contents> contents = contentsRepository.findByIssueTitleLikeAndType("%" + issue + "%", type).subList(0,20);
return contents.stream()
.map(contentsMapper::toDto)
.collect(Collectors.toList());
Expand Down

0 comments on commit 2a1f497

Please sign in to comment.