refactor(core): Extract hook context out of NodeExecutionFunctions (no-changelog) (#11537)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-11-04 16:27:23 +01:00
committed by GitHub
parent 0817f8571a
commit 19a5c2fcf1
6 changed files with 265 additions and 62 deletions

View File

@@ -14,6 +14,7 @@ import type {
IWorkflowExecuteAdditionalData,
NodeConnectionType,
NodeParameterValueType,
WebhookType,
Workflow,
WorkflowExecuteMode,
} from 'n8n-workflow';
@@ -108,7 +109,7 @@ export class WebhookContext extends NodeExecutionContext implements IWebhookFunc
return httpRequest;
}
getNodeWebhookUrl(name: string): string | undefined {
getNodeWebhookUrl(name: WebhookType): string | undefined {
return getNodeWebhookUrl(
name,
this.workflow,