From c1a55eb39ce5f347f7042fa2e167fd121ac8874a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 8 Nov 2022 15:37:32 +0100 Subject: [PATCH] :zap: Add type and adjust test --- packages/cli/src/workflows/workflows.services.ee.ts | 1 + packages/cli/src/workflows/workflows.types.ts | 1 + packages/cli/test/integration/workflows.controller.ee.test.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/cli/src/workflows/workflows.services.ee.ts b/packages/cli/src/workflows/workflows.services.ee.ts index 3189776c2a2c1..a5b68758f4d2d 100644 --- a/packages/cli/src/workflows/workflows.services.ee.ts +++ b/packages/cli/src/workflows/workflows.services.ee.ts @@ -127,6 +127,7 @@ export class EEWorkflowsService extends WorkflowsService { workflow.usedCredentials?.push({ id: credential.id.toString(), name: credential.name, + type: credential.type, currentUserHasAccess: userCredentialIds.includes(credentialId), }); }); diff --git a/packages/cli/src/workflows/workflows.types.ts b/packages/cli/src/workflows/workflows.types.ts index 947e4c6968003..53edabae0759c 100644 --- a/packages/cli/src/workflows/workflows.types.ts +++ b/packages/cli/src/workflows/workflows.types.ts @@ -12,5 +12,6 @@ export interface WorkflowWithSharingsAndCredentials extends Omit { expect(usedCredential).toMatchObject({ id: savedCredential.id.toString(), name: savedCredential.name, + type: savedCredential.type, currentUserHasAccess: true, }); });