Skip to content

Commit

Permalink
refactor(tus): if request status is duplicate, then no-op
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Sep 27, 2024
1 parent e372461 commit 2510660
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/tus.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ func (t *TUSServiceDefault) UploadCompleted(ctx context.Context, uploadID string
return err
}

if upload.Request.Status == models.RequestStatusDuplicate {
return nil
}

err = t.requests.CompleteRequest(ctx, upload.RequestID)
if err != nil {
return err
Expand Down

0 comments on commit 2510660

Please sign in to comment.