Skip to content

Commit

Permalink
[FO-991] [마이페이지] 최근 스크랩한 순서대로 순서 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkyoungdeok committed Mar 24, 2024
1 parent 2c79a8d commit d5d2551
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 @@ -192,7 +192,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 d5d2551

Please sign in to comment.