We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0398e2a commit 6d4de05Copy full SHA for 6d4de05
1 file changed
src/models/event.js
@@ -80,7 +80,13 @@ class Event {
80
this.payload[prop] = schema[prop];
81
}
82
} else {
83
- this[prop] = schema[prop];
+ if (prop === 'payload' && this.payload !== undefined) {
84
+ schema[prop].forEach(item => {
85
+ this.payload[item.key] = item.value;
86
+ });
87
+ } else {
88
+ this[prop] = schema[prop];
89
+ }
90
91
});
92
0 commit comments