Skip to content

Commit 3b73464

Browse files
authored
Fix profile approval request problem
1 parent 19b12ab commit 3b73464

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

profile/profile-ports/profile-postgres/src/main/kotlin/co/nilin/opex/profile/ports/postgres/dao/ProfileApprovalRequestRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ interface ProfileApprovalRequestRepository : ReactiveCrudRepository<ProfileAppro
1818
@Query("select * from profile_approval_request p where p.status = :status order by create_date desc")
1919
fun findByStatus(status: ProfileApprovalRequestStatus): Flow<ProfileApprovalRequestModel>?
2020

21-
@Query("select * from profile_approval_request p where p.profile_id = :profileId")
21+
@Query("select * from profile_approval_request p where p.profile_id = :profileId order by id desc limit 1")
2222
fun findByProfileId(profileId: Long): Mono<ProfileApprovalUserResponse>
2323
}

0 commit comments

Comments
 (0)