Skip to content

Commit 3459dc2

Browse files
committed
feat: err log on empty contact email and continue loop
1 parent 7b098d1 commit 3459dc2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • apps/api/internal/services

‎apps/api/internal/services/bat.go‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,10 @@ func (s *BatService) SendWelcomeEmailToAttendees(ctx context.Context, eventId uu
461461
if !ok {
462462
return ErrFailedToGetContactEmail
463463
}
464+
if contactEmail == "" {
465+
s.logger.Err(err).Msgf("empty contact email found for user with id %s", userId)
466+
continue
467+
}
464468

465469
err = s.emailService.QueueWelcomeEmail(ctx, contactEmail, contactInfo.Name, userId)
466470
if err != nil {

0 commit comments

Comments
 (0)