@autofleet/rabbit 1.5.7-2 → 1.5.7-3

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.
@@ -204,7 +204,7 @@
204
204
  <workItem from="1609106672294" duration="594000" />
205
205
  <workItem from="1609146731453" duration="21000" />
206
206
  <workItem from="1609193609209" duration="1486000" />
207
- <workItem from="1609629219943" duration="5228000" />
207
+ <workItem from="1609629219943" duration="6138000" />
208
208
  </task>
209
209
  <task id="LOCAL-00001" summary="validate name before usage">
210
210
  <created>1606375684964</created>
package/dist/index.js CHANGED
@@ -52,9 +52,9 @@ class RabbitMq {
52
52
  }
53
53
  });
54
54
  this.nack = (queue, options) => (msg, retries) => __awaiter(this, void 0, void 0, function* () {
55
- if (options === null || options === void 0 ? void 0 : options.messageTtl) {
56
- msg.content['x-message-ttl'] = options.messageTtl;
57
- }
55
+ // if (options?.messageTtl) {
56
+ // msg.content['x-message-ttl'] = options.messageTtl;
57
+ // }
58
58
  if (this.channel) {
59
59
  if (!msg.content['x-retry-count'] || msg.content['x-retry-count'] <= retries) {
60
60
  msg.content['x-retry-count'] = msg.content['x-retry-count'] ? msg.content['x-retry-count'] + 1 : 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/rabbit",
3
- "version": "1.5.7-2",
3
+ "version": "1.5.7-3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -83,9 +83,9 @@ class RabbitMq {
83
83
  }
84
84
 
85
85
  public nack = (queue: string, options?: Options.AssertQueue) => async (msg: any, retries: number) => {
86
- if (options?.messageTtl) {
87
- msg.content['x-message-ttl'] = options.messageTtl;
88
- }
86
+ // if (options?.messageTtl) {
87
+ // msg.content['x-message-ttl'] = options.messageTtl;
88
+ // }
89
89
  if (this.channel) {
90
90
  if (!msg.content['x-retry-count'] || msg.content['x-retry-count'] <= retries) {
91
91
  msg.content['x-retry-count'] = msg.content['x-retry-count'] ? msg.content['x-retry-count'] + 1 : 1;