From 5b8d447fcfc930b2f6fc42810482ba1577be869a Mon Sep 17 00:00:00 2001 From: ademravi <105318440+ademravi@users.noreply.github.com> Date: Fri, 29 Sep 2023 15:43:43 -0400 Subject: [PATCH 1/2] Update dynamodb.js Added ScanIndex to DynamoDB.js --- packages/aws/stepDefinitions/dynamodb.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/aws/stepDefinitions/dynamodb.js b/packages/aws/stepDefinitions/dynamodb.js index 43777ca..b4e124e 100644 --- a/packages/aws/stepDefinitions/dynamodb.js +++ b/packages/aws/stepDefinitions/dynamodb.js @@ -152,6 +152,9 @@ async function dynamoQuery (activeArgs, additionalArgs) { if (dynamoQueryArgs.projectionExpression) { queryParameters.ProjectionExpression = dynamoQueryArgs.projectionExpression } + if (dynamoQueryArgs.scanIndexForward) { + queryParameters.ScanIndexForward = dynamoQueryArgs.scanIndexForward + } if (dynamoQueryArgs.indexName) { queryParameters.IndexName = dynamoQueryArgs.indexName } @@ -193,6 +196,7 @@ async function performDynamoDBQueryFromJSON (payload) { case 'tableName': case 'indexName': case 'projectionExpression': + case 'scanIndexForward': case 'filterExpression': case 'keyConditionExpression': case 'expressionAttributeNames': From b038dad37504d02cf3305652634f73bf838c16c5 Mon Sep 17 00:00:00 2001 From: Dominick Martelly <97986187+martdo02@users.noreply.github.com> Date: Fri, 29 Sep 2023 15:46:33 -0400 Subject: [PATCH 2/2] Update dynamodb.js Fix spacing --- packages/aws/stepDefinitions/dynamodb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/aws/stepDefinitions/dynamodb.js b/packages/aws/stepDefinitions/dynamodb.js index b4e124e..6a29396 100644 --- a/packages/aws/stepDefinitions/dynamodb.js +++ b/packages/aws/stepDefinitions/dynamodb.js @@ -152,9 +152,9 @@ async function dynamoQuery (activeArgs, additionalArgs) { if (dynamoQueryArgs.projectionExpression) { queryParameters.ProjectionExpression = dynamoQueryArgs.projectionExpression } - if (dynamoQueryArgs.scanIndexForward) { + if (dynamoQueryArgs.scanIndexForward) { queryParameters.ScanIndexForward = dynamoQueryArgs.scanIndexForward - } + } if (dynamoQueryArgs.indexName) { queryParameters.IndexName = dynamoQueryArgs.indexName }