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 a2abd0d + fa3f11c commit e378701Copy full SHA for e378701
1 file changed
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