Skip to content

Commit

Permalink
fixup! @uppy/tus: wait for user promise on beforeRequest (#3712)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed May 17, 2022
1 parent 440f3ae commit 32d5887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@uppy/tus/src/index.js
Expand Up @@ -237,7 +237,7 @@ export default class Tus extends BasePlugin {
// enough time has elapsed to expect not to be rate-limited again.
// This means we can hold the Tus retry here with a `Promise.all`,
// together with the returned value of the user provided
// `onBeforeRequest` option callback (in case it returns a promise).
// `onBeforeRequest` option callback (in case it returns a promise).
return Promise.all([p, userProvidedPromise])
}
return userProvidedPromise
Expand Down

0 comments on commit 32d5887

Please sign in to comment.