Skip to content

Commit

Permalink
@uppy/aws-s3-multipart: pass signal as separate arg for backward co…
Browse files Browse the repository at this point in the history
…mpat (#4746)
  • Loading branch information
aduh95 authored Oct 20, 2023
1 parent 222b427 commit c72e411
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/@uppy/aws-s3-multipart/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ class HTTPCommunicationQueue {
return await this.#sendCompletionRequest(
this.#getFile(file),
{ key, uploadId, parts, signal },
signal,
).abortOn(signal)
} catch (err) {
if (err?.cause !== pausingUploadReason && err?.name !== 'AbortError') {
Expand All @@ -327,6 +328,7 @@ class HTTPCommunicationQueue {
const alreadyUploadedParts = await this.#listParts(
this.#getFile(file),
{ uploadId, key, signal },
signal,
).abortOn(signal)
throwIfAborted(signal)
const parts = await Promise.all(
Expand All @@ -346,6 +348,7 @@ class HTTPCommunicationQueue {
return this.#sendCompletionRequest(
this.#getFile(file),
{ key, uploadId, parts, signal },
signal,
).abortOn(signal)
}

Expand Down

0 comments on commit c72e411

Please sign in to comment.