From 564944ebca5d686c71d298c80df02f34c7137014 Mon Sep 17 00:00:00 2001 From: Olivier Verhaegen <56387556+OlivierVerhaegen@users.noreply.github.com> Date: Mon, 17 Apr 2023 14:20:23 +0200 Subject: [PATCH] Bugfix: ack --- io/stomp/18-stomp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io/stomp/18-stomp.js b/io/stomp/18-stomp.js index a1777333..2e338821 100644 --- a/io/stomp/18-stomp.js +++ b/io/stomp/18-stomp.js @@ -336,9 +336,9 @@ module.exports = function(RED) { node.ack = function(queue, messageId, transaction = undefined) { if (node.connected) { - node.client.ack(messageId, subscriptionIds[queue], transaction); + node.client.ack(messageId, node.subscriptionIds[queue], transaction); } else { - node.error("Can't publish, not connected"); + node.error("Can't send acknowledgement, not connected"); } }