From fa78e20ca61c74c5d3fa5893b04a8cdb0a986886 Mon Sep 17 00:00:00 2001 From: Loganathan Sekar Date: Fri, 9 Feb 2024 14:48:07 +0530 Subject: [PATCH] Fix for the JPA query method Signed-off-by: Loganathan Sekar --- .../common/service/repository/OtpTxnRepository.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentication/authentication-common/src/main/java/io/mosip/authentication/common/service/repository/OtpTxnRepository.java b/authentication/authentication-common/src/main/java/io/mosip/authentication/common/service/repository/OtpTxnRepository.java index 49792bdbc94..fb9fac1b134 100644 --- a/authentication/authentication-common/src/main/java/io/mosip/authentication/common/service/repository/OtpTxnRepository.java +++ b/authentication/authentication-common/src/main/java/io/mosip/authentication/common/service/repository/OtpTxnRepository.java @@ -14,11 +14,11 @@ public interface OtpTxnRepository extends BaseRepository { /** - * Find first element by ref_id ordered by generated_dtimes in descending order. + * Find first element by ref_id ordered by generated_dtimes in descending order and for the given status codes. * * @param refIdHash the ref id hash * @return the optional */ - Optional findFirstByRefIdInStatusCodesOrderByGeneratedDtimesDesc(String refIdHash, List statusCodes); + Optional findFirstByRefIdStatusCodeInOrderByGeneratedDtimesDesc(String refIdHash, List statusCodes); }