Skip to content

Commit

Permalink
feat(google-drive): add option to support all drives when moving a file
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSelene committed Nov 25, 2024
1 parent a0ceb29 commit f559769
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/pieces/community/google-drive/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@activepieces/piece-google-drive",
"version": "0.5.30"
}
"version": "0.5.31"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,17 @@ export const moveFileAction = createAction({

const drive = google.drive({ version: 'v3', auth: authClient });

const file = await drive.files.get({ fileId });
const file = await drive.files.get({
fileId,
supportsAllDrives: context.propsValue.include_team_drives,
});

const response = await drive.files.update({
fileId: fileId,
fields: '*',
removeParents: file.data.parents?.join(','),
addParents: folderId,
supportsAllDrives: context.propsValue.include_team_drives,
});

return response.data;
Expand Down

0 comments on commit f559769

Please sign in to comment.