Skip to content

Commit

Permalink
fix: Fix the issue in Trigger Nodes where poll time was not loaded (#…
Browse files Browse the repository at this point in the history
…10695)

Co-authored-by: Elias Meire <[email protected]>
Co-authored-by: Oleg Ivaniv <[email protected]>
  • Loading branch information
3 people authored and riascho committed Sep 23, 2024
1 parent d21f4a3 commit c895f4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/node-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
7 changes: 0 additions & 7 deletions packages/workflow/src/NodeHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c895f4c

Please sign in to comment.