mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
⚡ Rename webhookPath parameter on node to webhookId
This commit is contained in:
@@ -297,7 +297,7 @@ export interface INode {
|
||||
continueOnFail?: boolean;
|
||||
parameters: INodeParameters;
|
||||
credentials?: INodeCredentials;
|
||||
webhookPath?: string;
|
||||
webhookId?: string;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -859,13 +859,13 @@ export function getNodeWebhooksBasic(workflow: Workflow, node: INode): IWebhookD
|
||||
*/
|
||||
export function getNodeWebhookPath(workflowId: string, node: INode, path: string, isFullPath?: boolean): string {
|
||||
let webhookPath = '';
|
||||
if (node.webhookPath === undefined) {
|
||||
if (node.webhookId === undefined) {
|
||||
webhookPath = `${workflowId}/${encodeURIComponent(node.name.toLowerCase())}/${path}`;
|
||||
} else {
|
||||
if (isFullPath === true) {
|
||||
return path;
|
||||
}
|
||||
webhookPath = `${node.webhookPath}/${path}`;
|
||||
webhookPath = `${node.webhookId}/${path}`;
|
||||
}
|
||||
return webhookPath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user