We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 65ca4d8 + e378701 commit ae9e4c1Copy full SHA for ae9e4c1
update.js
@@ -16,8 +16,8 @@ export async function main(event, context) {
16
// 'ExpressionAttributeValues' defines the value in the update expression
17
UpdateExpression: "SET content = :content, attachment = :attachment",
18
ExpressionAttributeValues: {
19
- ":attachment": data.attachment ? data.attachment : null,
20
- ":content": data.content ? data.content : null
+ ":attachment": data.attachment || null,
+ ":content": data.content || null
21
},
22
ReturnValues: "ALL_NEW"
23
};
0 commit comments