From 822e12ff35081392d4e70bcfc61f27a6d7ba74c6 Mon Sep 17 00:00:00 2001 From: Matheus Cansian Date: Sat, 5 Oct 2019 12:10:12 -0300 Subject: [PATCH] Fix identation --- .../nodes-base/nodes/Aws/AwsLambda.node.ts | 76 +++++++++---------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/packages/nodes-base/nodes/Aws/AwsLambda.node.ts b/packages/nodes-base/nodes/Aws/AwsLambda.node.ts index bcbbca63a2..87685c75ba 100644 --- a/packages/nodes-base/nodes/Aws/AwsLambda.node.ts +++ b/packages/nodes-base/nodes/Aws/AwsLambda.node.ts @@ -46,42 +46,42 @@ export class AwsLambda implements INodeType { required: true, description: 'The function you want to invoke', }, - { - displayName: 'Qualifier', - name: 'qualifier', - type: 'string', - required: true, - default: '$LATEST', - description: 'Specify a version or alias to invoke a published version of the function', - }, - { - displayName: 'Invocation Type', - name: 'invocationType', - type: 'options', - options: [ - { - name: 'Wait for results', - value: 'RequestResponse', - description: 'Invoke the function synchronously and wait for the response', - }, - { - name: 'Continue workflow', - value: 'Event', - description: 'Invoke the function and immediately continue the workflow', - }, - ], - default: 'RequestResponse', - description: 'Specify if the workflow should wait for the function to return the results', - }, + { + displayName: 'Qualifier', + name: 'qualifier', + type: 'string', + required: true, + default: '$LATEST', + description: 'Specify a version or alias to invoke a published version of the function', + }, + { + displayName: 'Invocation Type', + name: 'invocationType', + type: 'options', + options: [ + { + name: 'Wait for results', + value: 'RequestResponse', + description: 'Invoke the function synchronously and wait for the response', + }, + { + name: 'Continue workflow', + value: 'Event', + description: 'Invoke the function and immediately continue the workflow', + }, + ], + default: 'RequestResponse', + description: 'Specify if the workflow should wait for the function to return the results', + }, { displayName: 'JSON Input', name: 'payload', type: 'string', default: '', description: 'The JSON that you want to provide to your Lambda function as input', - typeOptions: { - alwaysOpenEditWindow: true, - }, + typeOptions: { + alwaysOpenEditWindow: true, + }, }, ], }; @@ -121,10 +121,10 @@ export class AwsLambda implements INodeType { for (let i = 0; i < items.length; i++) { const params = { - FunctionName: this.getNodeParameter('function', i) as string, - InvocationType: this.getNodeParameter('invocationType', i) as string, - Payload: this.getNodeParameter('payload', i) as string, - Qualifier: this.getNodeParameter('qualifier', i) as string, + FunctionName: this.getNodeParameter('function', i) as string, + InvocationType: this.getNodeParameter('invocationType', i) as string, + Payload: this.getNodeParameter('payload', i) as string, + Qualifier: this.getNodeParameter('qualifier', i) as string, }; try { @@ -134,10 +134,10 @@ export class AwsLambda implements INodeType { } returnData.push({ - StatusCode: responseData.StatusCode, - Result: responseData.Payload, - Error: responseData.FunctionError, - } as IDataObject); + StatusCode: responseData.StatusCode, + Result: responseData.Payload, + Error: responseData.FunctionError, + } as IDataObject); } return [this.helpers.returnJsonArray(returnData)];