diff --git a/src/main/java/uk/gov/hmcts/reform/pip/account/management/database/UserRepository.java b/src/main/java/uk/gov/hmcts/reform/pip/account/management/database/UserRepository.java index f7161bf7e..7f33c28b1 100644 --- a/src/main/java/uk/gov/hmcts/reform/pip/account/management/database/UserRepository.java +++ b/src/main/java/uk/gov/hmcts/reform/pip/account/management/database/UserRepository.java @@ -42,7 +42,7 @@ List findExistingByProvenanceId(@Param("provUserId") String provenanceUs + " * :cftDaysAgo AND user_provenance = 'CFT_IDAM') " + " OR (CAST(last_signed_in_date AS DATE) = CURRENT_DATE - (interval '1' day)" + " * :crimeDaysAgo AND user_provenance = 'CRIME_IDAM') ", nativeQuery = true) - List findIdamUsersByLastSignedInDate(@Param("cftDaysAgo") int daysSinceLastSignedIn, + List findIdamUsersByLastSignedInDate(@Param("cftDaysAgo") int cftDaysSinceLastSignedIn, @Param("crimeDaysAgo") int crimeDaysSinceLastSignedIn); Optional findByEmailIgnoreCaseAndUserProvenanceAndRolesIn(String email, UserProvenances userProvenances,