Skip to content

Commit e30d44e

Browse files
imnomeebrmur
andauthored
Use DynamoDBDocumentClient to send DeleteCommand for consistency (#7736)
* Update basic.js Use DynamoDBDocumentClient to send DeleteCommand * Update basic.js --------- Co-authored-by: Brian Murray <40031786+brmur@users.noreply.github.com>
1 parent c813c0f commit e30d44e

File tree

1 file changed

+1
-1
lines changed
  • javascriptv3/example_code/dynamodb/scenarios

1 file changed

+1
-1
lines changed

javascriptv3/example_code/dynamodb/scenarios/basic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export const main = async () => {
162162
TableName: tableName,
163163
Key: { year: 1981, title: "The Evil Dead" },
164164
});
165-
await client.send(deleteCommand);
165+
await docClient.send(deleteCommand);
166166
log("Movie deleted.");
167167

168168
/**

0 commit comments

Comments
 (0)