@azteam/rabbitmq-async 1.0.202 → 1.0.204

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.
@@ -392,7 +392,7 @@ var RabbitMQAsync = /*#__PURE__*/function () {
392
392
  _context5.next = 44;
393
393
  break;
394
394
  case 36:
395
- if (callbackError) {
395
+ if (callbackError && data.retry === 1) {
396
396
  callbackError(prefixQueueName, _context5.t0);
397
397
  }
398
398
  if (!(data.retry <= 0)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/rabbitmq-async",
3
- "version": "1.0.202",
3
+ "version": "1.0.204",
4
4
  "description": "N/A",
5
5
  "keywords": [
6
6
  "toda",
@@ -16,7 +16,7 @@
16
16
  "prepublishOnly": "babel src --delete-dir-on-start -d lib"
17
17
  },
18
18
  "dependencies": {
19
- "@azteam/util": "1.0.50",
19
+ "@azteam/util": "1.0.51",
20
20
  "amqplib": "0.8.0",
21
21
  "fs-extra": "10.1.0",
22
22
  "lodash": "4.17.21"
@@ -174,7 +174,7 @@ class RabbitMQAsync {
174
174
  if (_.some(['IllegalOperationError: Channel closed'], (el) => _.includes(errString, el))) {
175
175
  reject(new Error(errString));
176
176
  } else {
177
- if (callbackError) {
177
+ if (callbackError && data.retry === 1) {
178
178
  callbackError(prefixQueueName, err);
179
179
  }
180
180
  if (data.retry <= 0) {