We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a38078 commit 0398e2aCopy full SHA for 0398e2a
1 file changed
src/models/event.js
@@ -71,7 +71,17 @@ class Event {
71
*/
72
fillModel(schema) {
73
Object.keys(schema).forEach(prop => {
74
- this[prop] = schema[prop];
+
75
+ if (prop === 'timestamp') {
76
+ if (!this.payload) {
77
+ this.payload = {};
78
+ this.payload['timestamp'] = schema[prop];
79
+ } else {
80
+ this.payload[prop] = schema[prop];
81
+ }
82
83
+ this[prop] = schema[prop];
84
85
});
86
}
87
0 commit comments