@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 +1 -2
- package/package.json +1 -1
- package/src/index.ts +1 -2
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
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
|
},
|