From c02e1b224c69d3c0969d47e07f7041bf99b1754d Mon Sep 17 00:00:00 2001 From: Sokratis Vidros Date: Fri, 8 Nov 2024 10:52:30 +0200 Subject: [PATCH] fix(api): More fixes for broken e2e --- apps/api/src/app/workflows-v2/generate-preview.e2e.ts | 1 + packages/shared/src/dto/workflows/workflow-commons-fields.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/api/src/app/workflows-v2/generate-preview.e2e.ts b/apps/api/src/app/workflows-v2/generate-preview.e2e.ts index 04dec02caa5..d9869453010 100644 --- a/apps/api/src/app/workflows-v2/generate-preview.e2e.ts +++ b/apps/api/src/app/workflows-v2/generate-preview.e2e.ts @@ -237,6 +237,7 @@ describe('Generate Preview', () => { } async function createWorkflowWithDigest() { const createWorkflowDto: CreateWorkflowDto = { + tags: [], __source: WorkflowCreationSourceEnum.EDITOR, name: 'John', workflowId: `john:${randomUUID()}`, diff --git a/packages/shared/src/dto/workflows/workflow-commons-fields.ts b/packages/shared/src/dto/workflows/workflow-commons-fields.ts index 3f30ae77bbc..9f410eaa94d 100644 --- a/packages/shared/src/dto/workflows/workflow-commons-fields.ts +++ b/packages/shared/src/dto/workflows/workflow-commons-fields.ts @@ -59,10 +59,10 @@ export type StepDto = { }; export type WorkflowCommonsFields = { - tags: string[]; - active?: boolean; name: string; description?: string; + tags?: string[]; + active?: boolean; }; export type PreferencesResponseDto = {