n8n-3867-progressively-apply-prettier-to-all (#3873)

* 🔨 formatting nodes with prettier
This commit is contained in:
Michael Kret
2022-08-17 18:50:24 +03:00
committed by GitHub
parent f2d326c7f0
commit 91d7e16c81
1072 changed files with 42357 additions and 59109 deletions

View File

@@ -1,13 +1,6 @@
import {
IExecuteFunctions,
} from 'n8n-core';
import { IExecuteFunctions } from 'n8n-core';
import {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { IDataObject, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
const data = [
{
@@ -90,9 +83,7 @@ export class N8nTrainingCustomerDatastore implements INodeType {
type: 'boolean',
displayOptions: {
show: {
operation: [
'getAllPeople',
],
operation: ['getAllPeople'],
},
},
default: false,
@@ -104,12 +95,8 @@ export class N8nTrainingCustomerDatastore implements INodeType {
type: 'number',
displayOptions: {
show: {
operation: [
'getAllPeople',
],
returnAll: [
false,
],
operation: ['getAllPeople'],
returnAll: [false],
},
},
typeOptions: {
@@ -130,14 +117,11 @@ export class N8nTrainingCustomerDatastore implements INodeType {
let responseData;
for (let i = 0; i < length; i++) {
if (operation === 'getOnePerson') {
responseData = data[0];
}
if (operation === 'getAllPeople') {
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
if (returnAll === true) {