Skip to content

Commit ffa3718

Browse files
committed
Updating comments
1 parent ab0d37f commit ffa3718

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/getItems/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const AWS = require('aws-sdk');
22

33
exports.handler = async () => {
4-
// Use dynamodb to get items from the ItemTable
4+
// Use dynamodb to get items from the Item table
55
const dynamodb = new AWS.DynamoDB.DocumentClient();
66
const params = {
77
TableName: process.env.TABLE_NAME

src/newItem/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ exports.handler = async event => {
1616
};
1717

1818
try {
19-
// Write a new item to the ItemTable
19+
// Write a new item to the Item table
2020
await dynamodb.put(params).promise();
2121
console.log(`Writing item ${params.Item.id} to table ${process.env.TABLE_NAME}.`);
2222
} catch (error) {

0 commit comments

Comments
 (0)