mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(core): Fix credentials lazy-loading (no-changelog) (#6615)
This commit is contained in:
committed by
GitHub
parent
d8909ab8b0
commit
07744986ea
@@ -38,6 +38,10 @@ const generate = async (kind) => {
|
||||
else obj[name] = { className, sourcePath };
|
||||
}
|
||||
|
||||
if (kind === 'credentials' && Array.isArray(instance.extends)) {
|
||||
obj[name].extends = instance.extends;
|
||||
}
|
||||
|
||||
if (kind === 'nodes') {
|
||||
const { credentials } = instance.description;
|
||||
if (credentials && credentials.length) {
|
||||
@@ -53,6 +57,7 @@ const generate = async (kind) => {
|
||||
}
|
||||
return obj;
|
||||
}, {});
|
||||
|
||||
LoggerProxy.info(`Detected ${Object.keys(data).length} ${kind}`);
|
||||
await writeJSON(`known/${kind}.json`, data);
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user