Skip to content

Commit

Permalink
Update DynamoDbMetadataRepo.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha authored Oct 17, 2024
1 parent d674813 commit 9b18018
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modules/terraformPlan/repo/DynamoDbMetadataRepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,12 @@ export class DynamoDBMetadataRepo implements IMetadataRepository {
IndexName: "commitSHA-index",
ScanIndexForward: false
};
let command: QueryCommand
let results : Record<string, NativeAttributeValue>[] = []
let response: QueryCommandOutput
let results: Record<string, NativeAttributeValue>[] = []
do {
command = new QueryCommand(params);
const command = new QueryCommand(params);
response = await this.dynamo.send(command);


if (response.Items && response.Items.length >= 0) {
results = results.concat(response.Items)
}
Expand Down

0 comments on commit 9b18018

Please sign in to comment.