Skip to content

Commit

Permalink
[FO-991] [마이페이지] 최근 스크랩한 순서대로 순서 변경 (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkyoungdeok authored Mar 24, 2024
1 parent b1e2eb0 commit b2b1807
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,11 @@ class JobOpeningRepositoryImpl(
where(col(JobOpening::id).`in`(ids.content))
}.associateBy { it?.id }

ids.map { jobOpenings[it] }
PageImpl(
ids.content.reversed().mapNotNull { jobOpenings[it] },
pageable,
ids.totalElements
)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ class ProfileRepositoryImpl(
where(col(Profile::id).`in`(ids.content))
}.associateBy { it!!.id }

ids.map { profiles[it] }
PageImpl(
ids.content.reversed().mapNotNull { profiles[it] },
pageable,
ids.totalElements
)
}
}

Expand Down

0 comments on commit b2b1807

Please sign in to comment.