mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Bugfix: ack
This commit is contained in:
parent
d14b0711c6
commit
564944ebca
@ -336,9 +336,9 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
node.ack = function(queue, messageId, transaction = undefined) {
|
node.ack = function(queue, messageId, transaction = undefined) {
|
||||||
if (node.connected) {
|
if (node.connected) {
|
||||||
node.client.ack(messageId, subscriptionIds[queue], transaction);
|
node.client.ack(messageId, node.subscriptionIds[queue], transaction);
|
||||||
} else {
|
} else {
|
||||||
node.error("Can't publish, not connected");
|
node.error("Can't send acknowledgement, not connected");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user