Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created May 16, 2022 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardgrantserverless/b55e213b9a9aca3f5a657ef3c0b83abc to your computer and use it in GitHub Desktop.
Save richardgrantserverless/b55e213b9a9aca3f5a657ef3c0b83abc to your computer and use it in GitHub Desktop.
const params = {
// PCJ: Minor change from original, use environment variable for stage sensitive table name
TableName: process.env.TABLE_NAME,
Item: {
id: uuid.v1(),
text: data.text,
checked: false,
createdAt: timestamp,
updatedAt: timestamp,
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment