🐛 Fix Google Drive delete and share (#1384)

* Fix condition that never evaluated to true

* Fix missing permissions for folder:share
This commit is contained in:
Iván Ovejero 2021-02-06 12:12:30 -03:00 committed by GitHub
parent 0d273ca854
commit 58c9a92e38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -530,10 +530,10 @@ export class GoogleDrive implements INodeType {
show: {
resource: [
'file',
'folder',
],
operation: [
'share',
'folder',
],
},
},
@ -2067,7 +2067,8 @@ export class GoogleDrive implements INodeType {
returnData.push(response as IDataObject);
}
} else if (['file', 'folder'].includes(resource)) {
}
if (['file', 'folder'].includes(resource)) {
if (operation === 'delete') {
// ----------------------------------
// delete