Skip to content

Commit

Permalink
Merge pull request #149 from Gongjakso/refactor/qa
Browse files Browse the repository at this point in the history
fix: 쿼리 오류 수정
  • Loading branch information
dl-00-e8 authored May 18, 2024
2 parents e0fa7c2 + 9b9f703 commit 2089748
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public GetPostRelation checkPostRelation(Member member, Long postId) {

@Transactional
public Page<GetProjectRes> getMyScrapProject(Member member, Pageable page){
Pageable pageable = PageRequest.of(page.getPageNumber(), page.getPageSize(), Sort.by("createdAt").descending());
Pageable pageable = PageRequest.of(page.getPageNumber(), page.getPageSize());

Page<PostScrap> scrapPageList = postScrapRepository.findAllByMemberAndScrapStatusTrueOrderByPostScrapIdDesc(member, pageable);

Expand All @@ -398,7 +398,7 @@ public Page<GetProjectRes> getMyScrapProject(Member member, Pageable page){

@Transactional
public Page<GetContestRes> getMyScrapContest(Member member, Pageable page){
Pageable pageable = PageRequest.of(page.getPageNumber(), page.getPageSize(), Sort.by("createdAt").descending());
Pageable pageable = PageRequest.of(page.getPageNumber(), page.getPageSize());

Page<PostScrap> scrapPageList = postScrapRepository.findAllByMemberAndScrapStatusTrueOrderByPostScrapIdDesc(member, pageable);

Expand Down

0 comments on commit 2089748

Please sign in to comment.