mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-23 11:44:06 -08:00
⚡ Rename parameter to be consistent
This commit is contained in:
parent
8998423934
commit
5ad9a29fa4
|
@ -780,6 +780,13 @@ export class GoogleDrive implements INodeType {
|
|||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'File Name',
|
||||
name: 'fileName',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `The name of the file`,
|
||||
},
|
||||
{
|
||||
displayName: 'Keep Revision Forever',
|
||||
name: 'keepRevisionForever',
|
||||
|
@ -789,13 +796,6 @@ export class GoogleDrive implements INodeType {
|
|||
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.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Name',
|
||||
name: 'name',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `The name of the file`,
|
||||
},
|
||||
{
|
||||
displayName: 'OCR Language',
|
||||
name: 'ocrLanguage',
|
||||
|
@ -2325,7 +2325,7 @@ export class GoogleDrive implements INodeType {
|
|||
const properties = this.getNodeParameter('options.propertiesUi.propertyValues', i, []) as IDataObject[];
|
||||
|
||||
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[];
|
||||
|
@ -2365,8 +2365,8 @@ export class GoogleDrive implements INodeType {
|
|||
|
||||
const body: IDataObject = {};
|
||||
|
||||
if (updateFields.name) {
|
||||
body.name = updateFields.name;
|
||||
if (updateFields.fileName) {
|
||||
body.name = updateFields.fileName;
|
||||
}
|
||||
|
||||
if (updateFields.parentId && updateFields.parentId !== '') {
|
||||
|
|
Loading…
Reference in a new issue