There was an error while loading. Please reload this page.
1 parent ab0d37f commit ffa3718Copy full SHA for ffa3718
src/getItems/index.js
@@ -1,7 +1,7 @@
1
const AWS = require('aws-sdk');
2
3
exports.handler = async () => {
4
- // Use dynamodb to get items from the ItemTable
+ // Use dynamodb to get items from the Item table
5
const dynamodb = new AWS.DynamoDB.DocumentClient();
6
const params = {
7
TableName: process.env.TABLE_NAME
src/newItem/index.js
@@ -16,7 +16,7 @@ exports.handler = async event => {
16
};
17
18
try {
19
- // Write a new item to the ItemTable
+ // Write a new item to the Item table
20
await dynamodb.put(params).promise();
21
console.log(`Writing item ${params.Item.id} to table ${process.env.TABLE_NAME}.`);
22
} catch (error) {
0 commit comments