updated code

This commit is contained in:
Piyush
2025-05-09 18:27:17 +05:30
parent 6145232330
commit aefe8fb38b
2 changed files with 7 additions and 4 deletions

View File

@@ -14,5 +14,8 @@ public interface EmailLogRepository extends JpaRepository<EmailLogEntity,Long> {
List<EmailLogEntity> findByUserActionIdAndEmailServiceTypeAndSendStatus(
Long userActionId, String emailServiceType, String sendStatus);
Optional<EmailLogEntity> findTopByUserIdAndEmailTypeAndIsDeletedFalseOrderByCreatedDateDesc(Long userId, String emailType);
List<EmailLogEntity> findByUserActionIdAndEmailServiceType(
Long userActionId, String emailServiceType);
}