From 99eb7437727c20208b0b73f779729ea458967230 Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Fri, 23 May 2025 00:42:25 +0200 Subject: [PATCH] add verifiedAt timestamp (#21477) Co-authored-by: CarinaWolli --- packages/features/tasker/tasks/scanWorkflowBody.test.ts | 2 +- packages/features/tasker/tasks/scanWorkflowBody.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/features/tasker/tasks/scanWorkflowBody.test.ts b/packages/features/tasker/tasks/scanWorkflowBody.test.ts index a17a95eed6..0c3f2ffb28 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 f1d06a652b..334f9f6c52 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,