Skip to content

Commit

Permalink
fix(activity): fix activity list refresh when --follow options is e…
Browse files Browse the repository at this point in the history
…nabled
  • Loading branch information
pdesoyres-cc committed Jun 6, 2024
1 parent e038af6 commit 04e0133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ function handleEvent (previousEvent, event) {
}

function onEvent (previousEvent, newEvent) {
const { event, date, data: { state, action, commit, cause } } = newEvent;
const { event, date, data: { uuid, state, action, commit, cause } } = newEvent;
if (event !== 'DEPLOYMENT_ACTION_BEGIN' && event !== 'DEPLOYMENT_ACTION_END') {
return previousEvent;
}
return handleEvent(previousEvent, { date, state, action, commit, cause, isLast: true });
return handleEvent(previousEvent, { date, uuid, state, action, commit, cause, isLast: true });
}

async function activity (params) {
Expand Down

0 comments on commit 04e0133

Please sign in to comment.