Add diff in workflow update events + fix existing (#11700)

Closes https://github.com/twentyhq/twenty/issues/11676.

Diff should be available for objects displaying timeline activities. It
should also fit the existing type.
This commit is contained in:
Thomas Trompette
2025-04-23 15:43:41 +02:00
committed by GitHub
parent e1054b0474
commit 1333c64d98
3 changed files with 27 additions and 11 deletions
@@ -401,7 +401,10 @@ export class WorkflowStatusesUpdateJob {
},
updatedFields: ['statuses'],
diff: {
statuses: newWorkflowStatuses,
statuses: {
before: currentWorkflow.statuses,
after: newWorkflowStatuses,
},
},
},
},