Rename parameter to be consistent

This commit is contained in:
Jan Oberhauser 2021-08-11 19:48:31 +02:00
parent 8998423934
commit 5ad9a29fa4

View file

@ -780,6 +780,13 @@ export class GoogleDrive implements INodeType {
}, },
}, },
options: [ options: [
{
displayName: 'File Name',
name: 'fileName',
type: 'string',
default: '',
description: `The name of the file`,
},
{ {
displayName: 'Keep Revision Forever', displayName: 'Keep Revision Forever',
name: 'keepRevisionForever', name: 'keepRevisionForever',
@ -789,13 +796,6 @@ export class GoogleDrive implements INodeType {
his is only applicable to files with binary content in Google Drive.</br> his is only applicable to files with binary content in Google Drive.</br>
Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.`, Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.`,
}, },
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: `The name of the file`,
},
{ {
displayName: 'OCR Language', displayName: 'OCR Language',
name: 'ocrLanguage', name: 'ocrLanguage',
@ -2325,7 +2325,7 @@ export class GoogleDrive implements INodeType {
const properties = this.getNodeParameter('options.propertiesUi.propertyValues', i, []) as IDataObject[]; const properties = this.getNodeParameter('options.propertiesUi.propertyValues', i, []) as IDataObject[];
if (properties.length) { if (properties.length) {
Object.assign(body, { properties: properties.reduce((obj, value) => Object.assign(obj, { [`${value.key}`]: value.value }), {}) } ); Object.assign(body, { properties: properties.reduce((obj, value) => Object.assign(obj, { [`${value.key}`]: value.value }), {}) } );
} }
const appProperties = this.getNodeParameter('options.appPropertiesUi.appPropertyValues', i, []) as IDataObject[]; const appProperties = this.getNodeParameter('options.appPropertiesUi.appPropertyValues', i, []) as IDataObject[];
@ -2365,8 +2365,8 @@ export class GoogleDrive implements INodeType {
const body: IDataObject = {}; const body: IDataObject = {};
if (updateFields.name) { if (updateFields.fileName) {
body.name = updateFields.name; body.name = updateFields.fileName;
} }
if (updateFields.parentId && updateFields.parentId !== '') { if (updateFields.parentId && updateFields.parentId !== '') {