mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -08:00
⚡ Make it possible to set parents for GoogleDrive folder create
This commit is contained in:
parent
0ce82e95ce
commit
70db0197e7
|
@ -689,10 +689,12 @@ export class GoogleDrive implements INodeType {
|
|||
displayOptions: {
|
||||
show: {
|
||||
'/operation': [
|
||||
'copy'
|
||||
'copy',
|
||||
'create',
|
||||
],
|
||||
'/resource': [
|
||||
'file',
|
||||
'folder',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
@ -700,7 +702,7 @@ export class GoogleDrive implements INodeType {
|
|||
multipleValues: true,
|
||||
},
|
||||
default: [],
|
||||
description: 'The IDs of the parent folders the file should be saved in.',
|
||||
description: 'The IDs of the parent folders the file/folder should be saved in.',
|
||||
},
|
||||
{
|
||||
displayName: 'Spaces',
|
||||
|
@ -1084,6 +1086,7 @@ export class GoogleDrive implements INodeType {
|
|||
// @ts-ignore
|
||||
resource: fileMetadata,
|
||||
fields: queryFields,
|
||||
parents: options.parents || [],
|
||||
});
|
||||
|
||||
returnData.push(response.data as IDataObject);
|
||||
|
|
Loading…
Reference in a new issue