@platform-x/hep-message-broker-client 1.1.23 → 1.1.24

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.
@@ -521,7 +521,7 @@ class MessageBroker {
521
521
  this.channel.ack(message);
522
522
  }
523
523
  else {
524
- if (retryCount > maxRetries) {
524
+ if (retryCount >= maxRetries) {
525
525
  logger_1.Logger.error('Max retries reached. Sending message to Dead Letter Queue.', 'consumeMessage');
526
526
  yield this.sendToDeadLetterQueue({ message: data, attempt: retryCount });
527
527
  if (typeof classInstance[consumerErrorHandler] === 'function') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-x/hep-message-broker-client",
3
- "version": "1.1.23",
3
+ "version": "1.1.24",
4
4
  "description": "platform-x hep-message-broker service",
5
5
  "main": "./dist/src/index.js",
6
6
  "scripts": {