@autofleet/rabbit 2.5.3 → 2.5.4

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/dist/index.js CHANGED
@@ -93,6 +93,12 @@ class RabbitMq {
93
93
  }
94
94
  await channel.ack(msg);
95
95
  }
96
+ else {
97
+ logger_1.default.error('no channel or msg', {
98
+ channel: channel ? channel.name : '',
99
+ msg,
100
+ });
101
+ }
96
102
  };
97
103
  this.em = new events_1.EventEmitter();
98
104
  this.channel = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/rabbit",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -231,6 +231,11 @@ class RabbitMq implements IAfRabbitMq {
231
231
  });
232
232
  }
233
233
  await channel.ack(msg);
234
+ } else {
235
+ logger.error('no channel or msg', {
236
+ channel: channel ? channel.name : '',
237
+ msg,
238
+ });
234
239
  }
235
240
  }
236
241