refactor(core): Use IWorkflowBase over WorkflowEntity in most places (#13225)

This commit is contained in:
Tomi Turtiainen
2025-02-13 10:54:11 +02:00
committed by GitHub
parent 11cf1cd23a
commit f001edb2a2
54 changed files with 190 additions and 192 deletions

View File

@@ -1,5 +1,6 @@
import { Container } from '@n8n/di';
import { mock } from 'jest-mock-extended';
import type { IWorkflowBase } from 'n8n-workflow';
import type {
WorkflowClosedMessage,
@@ -7,7 +8,6 @@ import type {
} from '@/collaboration/collaboration.message';
import { CollaborationService } from '@/collaboration/collaboration.service';
import type { User } from '@/databases/entities/user';
import type { WorkflowEntity } from '@/databases/entities/workflow-entity';
import { Push } from '@/push';
import { CacheService } from '@/services/cache/cache.service';
import { mockInstance } from '@test/mocking';
@@ -22,7 +22,7 @@ describe('CollaborationService', () => {
let owner: User;
let memberWithoutAccess: User;
let memberWithAccess: User;
let workflow: WorkflowEntity;
let workflow: IWorkflowBase;
let cacheService: CacheService;
beforeAll(async () => {