diff --git a/internal/service/upload_service.go b/internal/service/upload_service.go index 6ebfbc5..bf6ea25 100644 --- a/internal/service/upload_service.go +++ b/internal/service/upload_service.go @@ -190,7 +190,9 @@ func (s *UploadService) UploadChunk(ctx context.Context, sessionID int64, chunkI if session.Status == "pending" { if err := s.uploadStore.UpdateSessionStatus(ctx, sessionID, "uploading"); err != nil { - return fmt.Errorf("update status to uploading: %w", err) + if !errors.Is(err, gorm.ErrRecordNotFound) { + return fmt.Errorf("update status to uploading: %w", err) + } } }