From 78d107d8012f92d434e480f40580919ac81ae93a Mon Sep 17 00:00:00 2001 From: Andrew Chuang Date: Wed, 5 Jun 2024 09:37:57 -0300 Subject: [PATCH] fix file path bug --- components/google_drive/actions/upload-file/upload-file.mjs | 4 ++-- components/google_drive/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/google_drive/actions/upload-file/upload-file.mjs b/components/google_drive/actions/upload-file/upload-file.mjs index 489c12a226d28..4321448bcfe71 100644 --- a/components/google_drive/actions/upload-file/upload-file.mjs +++ b/components/google_drive/actions/upload-file/upload-file.mjs @@ -11,7 +11,7 @@ export default { key: "google_drive-upload-file", name: "Upload File", description: "Upload a file to Google Drive. [See the documentation](https://developers.google.com/drive/api/v3/manage-uploads) for more information", - version: "0.1.7", + version: "0.1.8", type: "action", props: { googleDrive, @@ -104,7 +104,7 @@ export default { const file = await getFileStream({ $, fileUrl, - filePath: filePath.includes("tmp/") + filePath: filePath?.startsWith("/tmp/") ? filePath : `/tmp/${filePath}`, }); diff --git a/components/google_drive/package.json b/components/google_drive/package.json index 0829429f3198e..a0604c15e089a 100644 --- a/components/google_drive/package.json +++ b/components/google_drive/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/google_drive", - "version": "0.8.1", + "version": "0.8.2", "description": "Pipedream Google_drive Components", "main": "google_drive.app.mjs", "keywords": [