@itentialopensource/adapter-kafkav2 0.16.7 → 0.16.8
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 +1 -1
- package/package.json +1 -1
- package/refs?service=git-upload-pack +0 -0
package/CHANGELOG.md
CHANGED
package/adapter.js
CHANGED
|
@@ -643,7 +643,7 @@ class Kafkav2 extends AdapterBaseCl {
|
|
|
643
643
|
}
|
|
644
644
|
// find the topic here to change the offset
|
|
645
645
|
for (let t = 0; t < this.topicsEvents.length; t += 1) {
|
|
646
|
-
if (this.topicsEvents[t].topic === topic && (this.topicsEvents[t].partition === partition || this.topicsEvents[t].partition.includes(partition))) {
|
|
646
|
+
if (this.topicsEvents[t].topic === topic && (this.topicsEvents[t].partition === partition || (Array.isArray(this.topicsEvents[t].partition) && this.topicsEvents[t].partition.includes(partition)))) {
|
|
647
647
|
allowedPartition = true;
|
|
648
648
|
if (this.topicsEvents[t].offset < message.offset) {
|
|
649
649
|
this.topicsEvents[t].offset = message.offset;
|
package/package.json
CHANGED
|
Binary file
|