🐛 Fix GoogleDrive setting parent folder

This commit is contained in:
Jan Oberhauser 2020-02-20 12:59:16 +01:00
parent 075aca9497
commit 4d5313849f

View file

@ -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);