mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00: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:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user