diff --git a/dist/index.js b/dist/index.js index ee6c749..af858e0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -524984,13 +524984,15 @@ async function main() { body: fs.createReadStream(path), }; - drive.files.create({ - resource: fileMetadata, - media: fileData, - uploadType: "multipart", - fields: "id", - supportsAllDrives: true, - }); + await drive.files + .create({ + resource: fileMetadata, + media: fileData, + uploadType: "multipart", + fields: "id", + supportsAllDrives: true, + }) + .finally(); } } diff --git a/src/index.js b/src/index.js index 388af09..f6c3b65 100644 --- a/src/index.js +++ b/src/index.js @@ -74,13 +74,15 @@ async function main() { body: fs.createReadStream(path), }; - drive.files.create({ - resource: fileMetadata, - media: fileData, - uploadType: "multipart", - fields: "id", - supportsAllDrives: true, - }); + await drive.files + .create({ + resource: fileMetadata, + media: fileData, + uploadType: "multipart", + fields: "id", + supportsAllDrives: true, + }) + .finally(); } }