Skip to content

Commit

Permalink
Convert pulsar message ID to string
Browse files Browse the repository at this point in the history
Changed the way messageId is handled in pulsar-consumer.js by converting messageId to a string. This ensures consistency in our data types and improves the reliability of message identification throughout the system. Tests have been updated to reflect this change.
  • Loading branch information
ng-galien committed Jan 1, 2024
1 parent f8a9202 commit 2809f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pulsar-consumer.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module.exports = function(RED) {
//if the buffer is empty, the message is not a json object
const nodeMessage = {
topic: pulsarMessage.getTopicName(),
messageId: pulsarMessage.getMessageId(),
messageId: pulsarMessage.getMessageId().toString(),
publishTime: pulsarMessage.getPublishTimestamp(),
eventTime: pulsarMessage.getEventTimestamp(),
redeliveryCount: pulsarMessage.getRedeliveryCount(),
Expand Down

0 comments on commit 2809f9c

Please sign in to comment.