Files
warmbly/internal/app/consumer/event_history_id_update.go
T

20 lines
439 B
Go

package jobs
import (
"context"
"github.com/warmbly/warmbly/internal/models"
)
func (s *JobsService) HandleHistoryIDUpdate(ctx context.Context, e *models.JobEventHistoryIDUpdate) error {
if err := s.EmailHistoryIDRepository.Put(ctx, e.UserID, e.EmailID, e.HistoryID); err != nil {
if s.dropForDeletedMailbox(ctx, e.UserID, e.EmailID, err) {
return nil
}
CaptureError(e.UserID, e.EmailID, err)
return err
}
return nil
}