From 2809f9c17cd692238d7977a50379439fb414619d Mon Sep 17 00:00:00 2001 From: Alexandre Boyer <33391039+ng-galien@users.noreply.github.com> Date: Mon, 1 Jan 2024 18:03:15 +0100 Subject: [PATCH] Convert pulsar message ID to string 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. --- src/pulsar-consumer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pulsar-consumer.js b/src/pulsar-consumer.js index b3d0646..55ecc53 100644 --- a/src/pulsar-consumer.js +++ b/src/pulsar-consumer.js @@ -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(),