Skip to content

Commit

Permalink
bring back action.timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
blainekasten committed Apr 15, 2020
1 parent f13bd07 commit 2c33e2a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/gatsby-cli/src/reporter/redux/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ export const dispatch = (action: ActionsUnion | Thunk): void => {
return
}

action = {
...action,
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore this is a typescript no-no..
// And i'm pretty sure this timestamp isn't used anywhere.
// but for now, the structured logs integration tests expect it
// so it's easier to leave it and then explore as a follow up
timestamp: new Date().toJSON(),
} as ActionsUnion

store.dispatch(action)

if (isInternalAction(action)) {
Expand Down

0 comments on commit 2c33e2a

Please sign in to comment.