Fix/sns put timestamp in message envelope (#268)

* Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command
* Revert "Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command"
* Fixes SNS/SQS enveloped message missing Timestamp in Body field.
* Fixes SNS/SQS enveloped message missing Timestamp in Body field.
This commit is contained in:
GitMarco authored and GitHub committed 2026-04-07 23:13:39 -05:00
1 parent 6d5839bec8
commit 2dca523907
2 files changed
+12 -3

No files matched your search

@@ -682,10 +682,12 @@ public class SnsService {
Map<String, MessageAttributeValue> messageAttributes,
String topicArn, String messageId) {
try {
String timestamp = DateTimeFormatter.ISO_INSTANT.format(Instant.now());
ObjectNode node = objectMapper.createObjectNode();
node.put("Type", "Notification");
node.put("MessageId", messageId);
node.put("TopicArn", topicArn);
node.put("Timestamp", timestamp);
if (subject != null) {
node.put("Subject", subject);
}