mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 12:19:09 +00:00
⚡ Make it possible to set parents for GoogleDrive folder create
This commit is contained in:
@@ -689,10 +689,12 @@ export class GoogleDrive implements INodeType {
|
|||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
'/operation': [
|
'/operation': [
|
||||||
'copy'
|
'copy',
|
||||||
|
'create',
|
||||||
],
|
],
|
||||||
'/resource': [
|
'/resource': [
|
||||||
'file',
|
'file',
|
||||||
|
'folder',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -700,7 +702,7 @@ export class GoogleDrive implements INodeType {
|
|||||||
multipleValues: true,
|
multipleValues: true,
|
||||||
},
|
},
|
||||||
default: [],
|
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',
|
displayName: 'Spaces',
|
||||||
@@ -1084,6 +1086,7 @@ export class GoogleDrive implements INodeType {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
resource: fileMetadata,
|
resource: fileMetadata,
|
||||||
fields: queryFields,
|
fields: queryFields,
|
||||||
|
parents: options.parents || [],
|
||||||
});
|
});
|
||||||
|
|
||||||
returnData.push(response.data as IDataObject);
|
returnData.push(response.data as IDataObject);
|
||||||
|
|||||||
Reference in New Issue
Block a user