diff --git a/packages/cli/src/ActiveWorkflowRunner.ts b/packages/cli/src/ActiveWorkflowRunner.ts index 3ab8c932ed..07cd0a8b82 100644 --- a/packages/cli/src/ActiveWorkflowRunner.ts +++ b/packages/cli/src/ActiveWorkflowRunner.ts @@ -20,7 +20,6 @@ import { } from 'n8n-core'; import { - IDataObject, IExecuteData, IGetExecutePollFunctions, IGetExecuteTriggerFunctions, @@ -283,23 +282,11 @@ export class ActiveWorkflowRunner { const node = workflow.getNode(webhookData.node) as INode; node.name = webhookData.node; - path = node.parameters.path as string; - - if (node.parameters.path === undefined) { - path = workflow.expression.getSimpleParameterValue(node, webhookData.webhookDescription['path'], mode) as string | undefined; - - if (path === undefined) { - // TODO: Use a proper logger - console.error(`No webhook path could be found for node "${node.name}" in workflow "${workflow.id}".`); - continue; - } - } - - const isFullPath: boolean = workflow.expression.getSimpleParameterValue(node, webhookData.webhookDescription['isFullPath'], mode, false) as boolean; + path = webhookData.path; const webhook = { workflowId: webhookData.workflowId, - webhookPath: NodeHelpers.getNodeWebhookPath(workflow.id as string, node, path, isFullPath), + webhookPath: path, node: node.name, method: webhookData.httpMethod, } as IWebhookDb; @@ -317,7 +304,6 @@ export class ActiveWorkflowRunner { } try { - await Db.collections.Webhook?.insert(webhook); const webhookExists = await workflow.runWebhookMethod('checkExists', webhookData, NodeExecuteFunctions, mode, activation, false);