Skip to content

Commit

Permalink
(#222)fix: 기업 검색 기능에서 page 객체 리턴 방식이 아닌 slice 객체와 count 쿼리로 분리했습니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
fakerdeft committed Apr 24, 2024
1 parent e41ae64 commit 6a68504
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public SearchCompanyResponse search(
);
}

@Transactional(readOnly = true)
public SearchCompanyCountResponse search(final String name) {
long totalElements = companyRepository.countByName(name);
int totalPages = (int) (totalElements / NORMAL_PAGE_SIZE);
Expand Down

0 comments on commit 6a68504

Please sign in to comment.