Skip to content

Commit

Permalink
Merge branch 'unit-tests-in-serverless'
Browse files Browse the repository at this point in the history
  • Loading branch information
jayair committed Oct 31, 2018
2 parents 65ca4d8 + e378701 commit ae9e4c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export async function main(event, context) {
// 'ExpressionAttributeValues' defines the value in the update expression
UpdateExpression: "SET content = :content, attachment = :attachment",
ExpressionAttributeValues: {
":attachment": data.attachment ? data.attachment : null,
":content": data.content ? data.content : null
":attachment": data.attachment || null,
":content": data.content || null
},
ReturnValues: "ALL_NEW"
};
Expand Down

0 comments on commit ae9e4c1

Please sign in to comment.