Minor improvements to RespondToWebhook node

This commit is contained in:
Jan Oberhauser
2021-11-05 11:19:23 -06:00
parent 7b8d388d17
commit 8c4040dc5b
2 changed files with 10 additions and 7 deletions

View File

@@ -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);
}
}