Skip to content

Scheduling infrastructure for absolutely everyone.

add verifiedAt timestamp (#21477)

Carina Wollendorfer99eb7437727c
diff --git a/packages/features/tasker/tasks/scanWorkflowBody.test.ts b/packages/features/tasker/tasks/scanWorkflowBody.test.ts
index a17a95eed62..0c3f2ffb280 100644
--- a/packages/features/tasker/tasks/scanWorkflowBody.test.ts
+++ b/packages/features/tasker/tasks/scanWorkflowBody.test.ts
@@ -165,7 +165,7 @@ describe("scanWorkflowBody", () => {
expect(scheduleWorkflowNotifications).toHaveBeenCalledWith({
activeOn: [1],
isOrg: false,
- workflowSteps: [mockWorkflowStep],
+ workflowSteps: [expect.objectContaining(mockWorkflowStep)],
time: mockWorkflow.time,
timeUnit: mockWorkflow.timeUnit,
trigger: mockWorkflow.trigger,
diff --git a/packages/features/tasker/tasks/scanWorkflowBody.ts b/packages/features/tasker/tasks/scanWorkflowBody.ts
index f1d06a652b9..334f9f6c52e 100644
--- a/packages/features/tasker/tasks/scanWorkflowBody.ts
+++ b/packages/features/tasker/tasks/scanWorkflowBody.ts
@@ -151,7 +151,10 @@ export async function scanWorkflowBody(payload: string) {
await scheduleWorkflowNotifications({
activeOn: workflow.activeOn.map((activeOn) => activeOn.eventTypeId) ?? [],
isOrg,
- workflowSteps,
+ workflowSteps: workflowSteps.map((step) => ({
+ ...step,
+ verifiedAt: new Date(),
+ })),
time: workflow.time,
timeUnit: workflow.timeUnit,
trigger: workflow.trigger,