mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
Fix identation
This commit is contained in:
parent
d3320e3411
commit
822e12ff35
|
@ -46,42 +46,42 @@ export class AwsLambda implements INodeType {
|
||||||
required: true,
|
required: true,
|
||||||
description: 'The function you want to invoke',
|
description: 'The function you want to invoke',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Qualifier',
|
displayName: 'Qualifier',
|
||||||
name: 'qualifier',
|
name: 'qualifier',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
required: true,
|
required: true,
|
||||||
default: '$LATEST',
|
default: '$LATEST',
|
||||||
description: 'Specify a version or alias to invoke a published version of the function',
|
description: 'Specify a version or alias to invoke a published version of the function',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Invocation Type',
|
displayName: 'Invocation Type',
|
||||||
name: 'invocationType',
|
name: 'invocationType',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: 'Wait for results',
|
name: 'Wait for results',
|
||||||
value: 'RequestResponse',
|
value: 'RequestResponse',
|
||||||
description: 'Invoke the function synchronously and wait for the response',
|
description: 'Invoke the function synchronously and wait for the response',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Continue workflow',
|
name: 'Continue workflow',
|
||||||
value: 'Event',
|
value: 'Event',
|
||||||
description: 'Invoke the function and immediately continue the workflow',
|
description: 'Invoke the function and immediately continue the workflow',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'RequestResponse',
|
default: 'RequestResponse',
|
||||||
description: 'Specify if the workflow should wait for the function to return the results',
|
description: 'Specify if the workflow should wait for the function to return the results',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'JSON Input',
|
displayName: 'JSON Input',
|
||||||
name: 'payload',
|
name: 'payload',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The JSON that you want to provide to your Lambda function as input',
|
description: 'The JSON that you want to provide to your Lambda function as input',
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
alwaysOpenEditWindow: true,
|
alwaysOpenEditWindow: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@ -121,10 +121,10 @@ export class AwsLambda implements INodeType {
|
||||||
|
|
||||||
for (let i = 0; i < items.length; i++) {
|
for (let i = 0; i < items.length; i++) {
|
||||||
const params = {
|
const params = {
|
||||||
FunctionName: this.getNodeParameter('function', i) as string,
|
FunctionName: this.getNodeParameter('function', i) as string,
|
||||||
InvocationType: this.getNodeParameter('invocationType', i) as string,
|
InvocationType: this.getNodeParameter('invocationType', i) as string,
|
||||||
Payload: this.getNodeParameter('payload', i) as string,
|
Payload: this.getNodeParameter('payload', i) as string,
|
||||||
Qualifier: this.getNodeParameter('qualifier', i) as string,
|
Qualifier: this.getNodeParameter('qualifier', i) as string,
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -134,10 +134,10 @@ export class AwsLambda implements INodeType {
|
||||||
}
|
}
|
||||||
|
|
||||||
returnData.push({
|
returnData.push({
|
||||||
StatusCode: responseData.StatusCode,
|
StatusCode: responseData.StatusCode,
|
||||||
Result: responseData.Payload,
|
Result: responseData.Payload,
|
||||||
Error: responseData.FunctionError,
|
Error: responseData.FunctionError,
|
||||||
} as IDataObject);
|
} as IDataObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
return [this.helpers.returnJsonArray(returnData)];
|
return [this.helpers.returnJsonArray(returnData)];
|
||||||
|
|
Loading…
Reference in a new issue