mirror of
https://github.com/warmbly/warmbly.git
synced 2026-12-01 08:08:55 +00:00
20 lines
439 B
Go
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
|
|
}
|