qdone 2.0.41-alpha → 2.0.42-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commonjs/src/dedup.js +4 -0
- package/package.json +1 -1
- package/src/dedup.js +3 -0
- package/src/scheduler/jobExecutor.js +0 -1
package/commonjs/src/dedup.js
CHANGED
|
@@ -65,6 +65,10 @@ function addDedupParamsToMessage(message, opt, messageOptions) {
|
|
|
65
65
|
if (!message.MessageDeduplicationId) {
|
|
66
66
|
message.MessageDeduplicationId = getDeduplicationId(message.MessageBody, opt);
|
|
67
67
|
}
|
|
68
|
+
else {
|
|
69
|
+
// Transform the incoming ID so that it fits SPS spec and is suitable for Redis
|
|
70
|
+
message.MessageDeduplicationId = getDeduplicationId(message.MessageDeduplicationId, opt);
|
|
71
|
+
}
|
|
68
72
|
// Track our own dedup id so we can look it up upon ReceiveMessage
|
|
69
73
|
if (opt.externalDedup) {
|
|
70
74
|
message.MessageAttributes = {
|
package/package.json
CHANGED
package/src/dedup.js
CHANGED
|
@@ -58,6 +58,9 @@ export function addDedupParamsToMessage (message, opt, messageOptions) {
|
|
|
58
58
|
// Fallback to using the message body
|
|
59
59
|
if (!message.MessageDeduplicationId) {
|
|
60
60
|
message.MessageDeduplicationId = getDeduplicationId(message.MessageBody, opt)
|
|
61
|
+
} else {
|
|
62
|
+
// Transform the incoming ID so that it fits SPS spec and is suitable for Redis
|
|
63
|
+
message.MessageDeduplicationId = getDeduplicationId(message.MessageDeduplicationId, opt)
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
// Track our own dedup id so we can look it up upon ReceiveMessage
|