mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
fix: Fix the issue in Trigger Nodes where poll time was not loaded (#10695)
Co-authored-by: Elias Meire <elias@meire.dev> Co-authored-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
parent
a422c5ac7b
commit
1dea8f4c7d
|
@ -74,8 +74,8 @@ export class NodeTypes implements INodeTypes {
|
|||
|
||||
if (type in knownNodes) {
|
||||
const { className, sourcePath } = knownNodes[type];
|
||||
const loaded: INodeType | IVersionedNodeType = loadClassInIsolation(sourcePath, className);
|
||||
if (NodeHelpers.isINodeType(loaded)) NodeHelpers.applySpecialNodeParameters(loaded);
|
||||
const loaded: INodeType = loadClassInIsolation(sourcePath, className);
|
||||
NodeHelpers.applySpecialNodeParameters(loaded);
|
||||
|
||||
loadedNodes[type] = { sourcePath, type: loaded };
|
||||
return loadedNodes[type];
|
||||
|
|
|
@ -352,13 +352,6 @@ const declarativeNodeOptionParameters: INodeProperties = {
|
|||
],
|
||||
};
|
||||
|
||||
/**
|
||||
* Determines if the node is of INodeType
|
||||
*/
|
||||
export function isINodeType(obj: unknown): obj is INodeType {
|
||||
return typeof obj === 'object' && obj !== null && 'execute' in obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Modifies the description of the passed in object, such that it can be used
|
||||
* as an AI Agent Tool.
|
||||
|
|
Loading…
Reference in a new issue