Done ticket GEPAFINBE-6141
This commit is contained in:
@@ -24,8 +24,11 @@ public interface EmailLogRepository extends JpaRepository<EmailLogEntity,Long> {
|
||||
String sendStatus
|
||||
);
|
||||
|
||||
List<EmailLogEntity> findByUserActionIdAndSendStatusAndIsDeletedFalse(Long userActionId,String status);
|
||||
|
||||
|
||||
@Query(value = """
|
||||
SELECT DISTINCT ON (user_action_id) * FROM email_log WHERE send_status = 'PENDING' AND is_deleted = false AND email_service_type = 'PEC_SERVICE' """, nativeQuery = true)
|
||||
SELECT DISTINCT ON (user_action_id) * FROM gepafin_schema.email_log WHERE send_status = 'PENDING' AND is_deleted = false""", nativeQuery = true)
|
||||
List<EmailLogEntity> findPendingPECEmailLogs();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user