Skip to content

Commit 8ba44c0

Browse files
committed
Update eventsFactory.js
1 parent 6d4de05 commit 8ba44c0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/models/eventsFactory.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,14 @@ class EventsFactory extends Factory {
286286
if (result && result.events) {
287287
result.events.forEach(event => {
288288
event.projectId = this.projectId;
289+
290+
if (event.timestamp) {
291+
if (!event.payload) {
292+
event.payload = {};
293+
}
294+
295+
event.payload.timestamp = event.timestamp;
296+
}
289297
});
290298
}
291299

0 commit comments

Comments
 (0)