Explorar el Código

@uppy/companion: fix missing `await`

Antoine du Hamel hace 11 meses
padre
commit
469490cf8f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/@uppy/companion/src/server/provider/drive/index.js

+ 1 - 1
packages/@uppy/companion/src/server/provider/drive/index.js

@@ -152,7 +152,7 @@ class Drive extends Provider {
         // Implemented based on the answer from StackOverflow: https://stackoverflow.com/a/59168288
         const mimeTypeExportLink = exportLinks?.[mimeType2]
         if (mimeTypeExportLink) {
-          const gSuiteFilesClient = got.extend({
+          const gSuiteFilesClient = (await got).extend({
             headers: {
               authorization: `Bearer ${token}`,
             },