@onlineapps/conn-infra-mq 1.1.14 → 1.1.15
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/package.json
CHANGED
|
@@ -36,7 +36,9 @@ class QueueManager {
|
|
|
36
36
|
if (!transport || !transport.channel) {
|
|
37
37
|
throw new Error('MQ client not connected');
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
// Use queueChannel for queue operations to avoid RPC reply queue issues
|
|
40
|
+
// queueChannel is a regular channel, not ConfirmChannel
|
|
41
|
+
const channel = transport.queueChannel || transport.channel;
|
|
40
42
|
|
|
41
43
|
let queueOptions;
|
|
42
44
|
|
|
@@ -315,7 +317,8 @@ class QueueManager {
|
|
|
315
317
|
if (!transport || !transport.channel) {
|
|
316
318
|
throw new Error('MQ client not connected');
|
|
317
319
|
}
|
|
318
|
-
|
|
320
|
+
// Use queueChannel for queue operations
|
|
321
|
+
const channel = transport.queueChannel || transport.channel;
|
|
319
322
|
|
|
320
323
|
return channel.purgeQueue(queueName);
|
|
321
324
|
}
|
|
@@ -329,7 +332,8 @@ class QueueManager {
|
|
|
329
332
|
if (!transport || !transport.channel) {
|
|
330
333
|
throw new Error('MQ client not connected');
|
|
331
334
|
}
|
|
332
|
-
|
|
335
|
+
// Use queueChannel for queue operations
|
|
336
|
+
const channel = transport.queueChannel || transport.channel;
|
|
333
337
|
|
|
334
338
|
const result = await channel.checkQueue(queueName);
|
|
335
339
|
return {
|