Skip to content

Commit

Permalink
⚡ Add type and adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Nov 8, 2022
1 parent 728c963 commit c1a55eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/workflows/workflows.services.ee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
});
});
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/workflows/workflows.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ export interface WorkflowWithSharingsAndCredentials extends Omit<WorkflowEntity,
export interface CredentialUsedByWorkflow {
id: string;
name: string;
type?: string;
currentUserHasAccess: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ describe('GET /workflows', () => {
expect(usedCredential).toMatchObject({
id: savedCredential.id.toString(),
name: savedCredential.name,
type: savedCredential.type,
currentUserHasAccess: true,
});
});
Expand Down

0 comments on commit c1a55eb

Please sign in to comment.