mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
🐛 Fix GoogleDrive setting parent folder
This commit is contained in:
parent
075aca9497
commit
4d5313849f
|
@ -1079,14 +1079,14 @@ export class GoogleDrive implements INodeType {
|
|||
|
||||
const fileMetadata = {
|
||||
name,
|
||||
mimeType: 'application/vnd.google-apps.folder'
|
||||
mimeType: 'application/vnd.google-apps.folder',
|
||||
parents: options.parents || [],
|
||||
};
|
||||
|
||||
const response = await drive.files.create({
|
||||
// @ts-ignore
|
||||
resource: fileMetadata,
|
||||
fields: queryFields,
|
||||
parents: options.parents || [],
|
||||
});
|
||||
|
||||
returnData.push(response.data as IDataObject);
|
||||
|
|
Loading…
Reference in a new issue