mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(core): Handle versioned custom nodes correctly (#5313)
This commit is contained in:
committed by
GitHub
parent
309c995364
commit
59f5c4221e
@@ -1,7 +1,7 @@
|
||||
import * as path from 'path';
|
||||
import { readFile } from 'fs/promises';
|
||||
import glob from 'fast-glob';
|
||||
import { jsonParse, LoggerProxy as Logger } from 'n8n-workflow';
|
||||
import { jsonParse, getVersionedNodeTypeAll, LoggerProxy as Logger } from 'n8n-workflow';
|
||||
import type {
|
||||
CodexData,
|
||||
DocumentationLink,
|
||||
@@ -133,7 +133,9 @@ export abstract class DirectoryLoader {
|
||||
version: nodeVersion,
|
||||
});
|
||||
|
||||
this.types.nodes.push(tempNode.description);
|
||||
getVersionedNodeTypeAll(tempNode).forEach(({ description }) => {
|
||||
this.types.nodes.push(description);
|
||||
});
|
||||
}
|
||||
|
||||
protected loadCredentialFromFile(credentialName: string, filePath: string): void {
|
||||
|
||||
Reference in New Issue
Block a user