mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
⚡ Minor improvements to RespondToWebhook node
This commit is contained in:
parent
7b8d388d17
commit
8c4040dc5b
|
@ -40,6 +40,9 @@ class NodeTypesClass implements INodeTypes {
|
|||
}
|
||||
|
||||
getByNameAndVersion(nodeType: string, version?: number): INodeType {
|
||||
if (this.nodeTypes[nodeType] === undefined) {
|
||||
throw new Error(`The node-type "${nodeType}" is not known!`);
|
||||
}
|
||||
return NodeHelpers.getVersionedTypeNode(this.nodeTypes[nodeType].type, version);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -283,7 +283,7 @@ export class Wait implements INodeType {
|
|||
description: 'The HTTP Response code to return',
|
||||
},
|
||||
{
|
||||
displayName: 'Respond When',
|
||||
displayName: 'Respond',
|
||||
name: 'responseMode',
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
|
@ -295,19 +295,19 @@ export class Wait implements INodeType {
|
|||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Webhook received',
|
||||
name: 'Immediately',
|
||||
value: 'onReceived',
|
||||
description: 'Returns directly with defined Response Code',
|
||||
description: 'As soon as this node executes',
|
||||
},
|
||||
{
|
||||
name: 'Last node finishes',
|
||||
name: 'When last node finishes',
|
||||
value: 'lastNode',
|
||||
description: 'Returns data of the last executed node',
|
||||
description: 'Returns data of the last-executed node',
|
||||
},
|
||||
{
|
||||
name: 'Response Node finishes',
|
||||
name: 'Using \'Respond to Webhook\' node',
|
||||
value: 'responseNode',
|
||||
description: 'Returns data the response node did set',
|
||||
description: 'Response defined in that node',
|
||||
},
|
||||
],
|
||||
default: 'onReceived',
|
||||
|
|
Loading…
Reference in a new issue