Minor improvements to AWS Comprehend

This commit is contained in:
Jan Oberhauser
2021-05-07 22:31:27 -05:00
parent 71ec72493c
commit 1fd0fcc729
2 changed files with 29 additions and 19 deletions

View File

@@ -145,14 +145,14 @@ export class AwsLambda implements INodeType {
let marker: string = data.NextMarker;
while (true) {
const dataLoop = await awsApiRequestREST.call(this, 'lambda', 'GET', `/2015-03-31/functions/?MaxItems=50&Marker=${encodeURIComponent(marker)}`);
for (const func of dataLoop.Functions!) {
returnData.push({
name: func.FunctionName as string,
value: func.FunctionArn as string,
});
}
if (dataLoop.NextMarker) {
marker = dataLoop.NextMarker;
} else {
@@ -160,7 +160,7 @@ export class AwsLambda implements INodeType {
}
}
}
return returnData;
},
},