@autofleet/rabbit 2.1.3 → 2.1.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
@@ -222,8 +222,7 @@ class RabbitMq {
222
222
  outbreak_1.newTrace(outbreak_1.traceTypes.RABBIT);
223
223
  const shouldConsume = yield this.shouldConsumeMessageByTimestamp(parsedMessage);
224
224
  if (!shouldConsume) {
225
- this.ack(channel);
226
- return;
225
+ return this.ack(channel)(msg);
227
226
  }
228
227
  callback(parsedMessage, this.ack(channel, true), this.nack(channel, queue, optionsWithDefaults, { messageTtl: deadMessageTtl }));
229
228
  })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/rabbit",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -253,8 +253,7 @@ class RabbitMq implements IAfRabbitMq {
253
253
  newTrace(traceTypes.RABBIT);
254
254
  const shouldConsume = await this.shouldConsumeMessageByTimestamp(parsedMessage);
255
255
  if (!shouldConsume) {
256
- this.ack(channel);
257
- return;
256
+ return this.ack(channel)(msg);
258
257
  }
259
258
  callback(parsedMessage, this.ack(channel, true), this.nack(channel, queue, optionsWithDefaults, { messageTtl: deadMessageTtl }));
260
259
  },