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,4 +1,5 @@
import { readFileSync } from 'fs';
import type { IWorkflowBase } from 'n8n-workflow';
import {
NodeConnectionType,
type INodeType,
@@ -7,7 +8,6 @@ import {
} from 'n8n-workflow';
import { agent as testAgent } from 'supertest';
import type { WorkflowEntity } from '@/databases/entities/workflow-entity';
import { ExternalHooks } from '@/external-hooks';
import { NodeTypes } from '@/node-types';
import { Push } from '@/push';
@@ -230,7 +230,7 @@ describe('Webhook API', () => {
node: WebhookTestingNode,
path = 'abcd',
httpMethod = 'POST',
): Partial<WorkflowEntity> => ({
): Partial<IWorkflowBase> => ({
active: true,
nodes: [
{