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:
Shireen Missi 2024-09-05 17:52:51 +01:00 committed by GitHub
parent a422c5ac7b
commit 1dea8f4c7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 9 deletions

View file

@ -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];

View file

@ -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.