notification-processor 4.12.0 → 4.13.1

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/README.md CHANGED
@@ -72,3 +72,10 @@ const processor = JobsProcessor({
72
72
  })
73
73
  ```
74
74
 
75
+ ## To publish
76
+ ```
77
+ npm version [major/minor/patch]
78
+ npm publish
79
+ git push origin HEAD
80
+ git push origin HEAD --tags
81
+ ```
@@ -62,8 +62,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
62
62
  observable.on("finished", function (payload) {
63
63
  return _this.uploadTrackingFile(payload, "finished");
64
64
  });
65
- return observable.on("success", function (payload) {
66
- return _this.uploadTrackingFile(payload, "success");
65
+ return observable.on("successful", function (payload) {
66
+ return _this.uploadTrackingFile(payload, "successful");
67
67
  });
68
68
  }
69
69
  }, {
@@ -121,7 +121,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
121
121
 
122
122
  var ref1, ref2;
123
123
  return {
124
- key: user + "/" + notification.message.EventId + "/" + _this3.app + "|" + _this3.job + "|" + eventType,
124
+ key: user + "/" + notification.message.EventId + "/" + _this3.app + "|" + _this3.job + "|" + eventType + "|" + new Date().toISOString(),
125
125
  body: JSON.stringify({
126
126
  eventId: notification != null ? (ref1 = notification.message) != null ? ref1.EventId : void 0 : void 0,
127
127
  parentEventId: (notification != null ? (ref2 = notification.message) != null ? ref2.ParentEventId : void 0 : void 0) || null,