@itentialopensource/adapter-kafkav2 0.6.10 → 0.7.0
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/CHANGELOG.md +8 -0
- package/adapter.js +2 -1
- package/package.json +1 -1
- package/refs?service=git-upload-pack +0 -0
package/CHANGELOG.md
CHANGED
package/adapter.js
CHANGED
|
@@ -507,7 +507,6 @@ class Kafkav2 extends AdapterBaseCl {
|
|
|
507
507
|
eachMessage: async ({ topic, partition, message }) => {
|
|
508
508
|
log.info(`PROCESSING NEW MESSAGE ON TOPIC: ${topic} PARTITION: ${partition} WITH OFFSET: ${message.offset}`);
|
|
509
509
|
const newMsg = message;
|
|
510
|
-
newMsg.topic = topic;
|
|
511
510
|
let avroUsed = false;
|
|
512
511
|
let desiredTopic = [];
|
|
513
512
|
let allowedPartition = false;
|
|
@@ -588,10 +587,12 @@ class Kafkav2 extends AdapterBaseCl {
|
|
|
588
587
|
messageObj = { [wrapper]: newMsg.value.toString() };
|
|
589
588
|
}
|
|
590
589
|
for (let j = 0; j < desiredTopic.length; j += 1) {
|
|
590
|
+
messageObj.topic = topic;
|
|
591
591
|
eventSystem.publish(desiredTopic[j], messageObj);
|
|
592
592
|
}
|
|
593
593
|
} else {
|
|
594
594
|
for (let j = 0; j < desiredTopic.length; j += 1) {
|
|
595
|
+
newMsg.topic = topic;
|
|
595
596
|
eventSystem.publish(desiredTopic[j], newMsg);
|
|
596
597
|
}
|
|
597
598
|
}
|
package/package.json
CHANGED
|
Binary file
|