From b2b1807969cf9eacfc35e2cddfb265e203e087e9 Mon Sep 17 00:00:00 2001 From: Bob Sin Date: Sun, 24 Mar 2024 22:43:25 +0900 Subject: [PATCH] =?UTF-8?q?[FO-991]=20[=EB=A7=88=EC=9D=B4=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80]=20=EC=B5=9C=EA=B7=BC=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=9E=A9=ED=95=9C=20=EC=88=9C=EC=84=9C=EB=8C=80=EB=A1=9C=20?= =?UTF-8?q?=EC=88=9C=EC=84=9C=20=EB=B3=80=EA=B2=BD=20(#431)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jobOpening/infrastructure/JobOpeningRepositoryImpl.kt | 6 +++++- .../fone/profile/infrastructure/ProfileRepositoryImpl.kt | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/server/src/main/kotlin/com/fone/jobOpening/infrastructure/JobOpeningRepositoryImpl.kt b/server/src/main/kotlin/com/fone/jobOpening/infrastructure/JobOpeningRepositoryImpl.kt index 534a7247..cb480fe3 100644 --- a/server/src/main/kotlin/com/fone/jobOpening/infrastructure/JobOpeningRepositoryImpl.kt +++ b/server/src/main/kotlin/com/fone/jobOpening/infrastructure/JobOpeningRepositoryImpl.kt @@ -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 + ) } } diff --git a/server/src/main/kotlin/com/fone/profile/infrastructure/ProfileRepositoryImpl.kt b/server/src/main/kotlin/com/fone/profile/infrastructure/ProfileRepositoryImpl.kt index cc7de4c7..dd18668b 100644 --- a/server/src/main/kotlin/com/fone/profile/infrastructure/ProfileRepositoryImpl.kt +++ b/server/src/main/kotlin/com/fone/profile/infrastructure/ProfileRepositoryImpl.kt @@ -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 + ) } }