Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/data-access/dynamoDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function makeDb({ makeDbConnect, getTableName }) {
const item = objectToItem({ itemInfo });

// Create the input object for DynamoDB.
const input = createPutItemInput({ item });
const input = createPutItemInput(item);

// Put the item in the database.
const result = await db.putItem(input).promise();
Expand Down
13 changes: 1 addition & 12 deletions src/email/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,4 @@ const { makeSendSESEmail } = require('./awsSES');

const sendEmail = makeSendSESEmail();

module.exports = { sendEmail };

// can be imported & used in following way

// await sendEmail({
// toEmailAddresses: ['email@email.com'],
// subjectData: `Email Subject`,
// sourceEmail: 'emailsender@email.com', // from env SOURCE_EMAIL
// replyToAddresses: [REPLY_TO_ADDRESS], // from env
// bodyData: 'email body',
// htmlData: `an html template some with body.....`
// })
module.exports = { sendEmail };