mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
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:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user