mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
🐛 Fix GoogleDrive setting parent folder
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user