mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -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) {
|
if (type in knownNodes) {
|
||||||
const { className, sourcePath } = knownNodes[type];
|
const { className, sourcePath } = knownNodes[type];
|
||||||
const loaded: INodeType | IVersionedNodeType = loadClassInIsolation(sourcePath, className);
|
const loaded: INodeType = loadClassInIsolation(sourcePath, className);
|
||||||
if (NodeHelpers.isINodeType(loaded)) NodeHelpers.applySpecialNodeParameters(loaded);
|
NodeHelpers.applySpecialNodeParameters(loaded);
|
||||||
|
|
||||||
loadedNodes[type] = { sourcePath, type: loaded };
|
loadedNodes[type] = { sourcePath, type: loaded };
|
||||||
return loadedNodes[type];
|
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
|
* Modifies the description of the passed in object, such that it can be used
|
||||||
* as an AI Agent Tool.
|
* as an AI Agent Tool.
|
||||||
|
|
Loading…
Reference in a new issue