From 32d58875dd443d93725c824f58f9d74c95562c6e Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 17 May 2022 18:22:01 +0200 Subject: [PATCH] fixup! @uppy/tus: wait for user promise on beforeRequest (#3712) --- packages/@uppy/tus/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@uppy/tus/src/index.js b/packages/@uppy/tus/src/index.js index 3e6af2b751..00abd40167 100644 --- a/packages/@uppy/tus/src/index.js +++ b/packages/@uppy/tus/src/index.js @@ -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