Skip to content

Commit

Permalink
Avoid using reserved keyword Text (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
harryzcy authored Nov 19, 2023
1 parent e0a46ae commit a0494aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/email/reparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ func Reparse(ctx context.Context, client api.ReparseEmailAPI, messageID string)
Key: map[string]types.AttributeValue{
"MessageID": &types.AttributeValueMemberS{Value: messageID},
},
UpdateExpression: aws.String("SET Text = :text, HTML = :html, Attachments = :attachments, Inlines = :inlines, OtherParts = :others"),
UpdateExpression: aws.String("SET #tx = :text, HTML = :html, Attachments = :attachments, Inlines = :inlines, OtherParts = :others"),
ExpressionAttributeNames: map[string]string{
"#tx": "Text",
},
ExpressionAttributeValues: map[string]types.AttributeValue{
":text": &types.AttributeValueMemberS{Value: emailResult.Text},
":html": &types.AttributeValueMemberS{Value: emailResult.HTML},
Expand Down

0 comments on commit a0494aa

Please sign in to comment.