mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
fix(core): fix predefinedCredentialType in node graph item (#4379)
* 🐛 Fix predefined cred in node graph item * 🔥 Remove logging
This commit is contained in:
@@ -171,13 +171,13 @@ export function generateNodesGraph(
|
|||||||
} catch (_) {
|
} catch (_) {
|
||||||
nodeItem.domain = getDomainBase(node.parameters.url as string);
|
nodeItem.domain = getDomainBase(node.parameters.url as string);
|
||||||
}
|
}
|
||||||
} else if (node.type === 'n8n-nodes-base.httpRequest' && node.typeVersion === 2) {
|
} else if (node.type === 'n8n-nodes-base.httpRequest' && [2, 3].includes(node.typeVersion)) {
|
||||||
const { authentication } = node.parameters as { authentication: string };
|
const { authentication } = node.parameters as { authentication: string };
|
||||||
|
|
||||||
nodeItem.credential_type = {
|
nodeItem.credential_type = {
|
||||||
none: 'none',
|
none: 'none',
|
||||||
genericCredentialType: node.parameters.genericAuthType as string,
|
genericCredentialType: node.parameters.genericAuthType as string,
|
||||||
existingCredentialType: node.parameters.nodeCredentialType as string,
|
predefinedCredentialType: node.parameters.nodeCredentialType as string,
|
||||||
}[authentication];
|
}[authentication];
|
||||||
|
|
||||||
nodeItem.credential_set = node.credentials
|
nodeItem.credential_set = node.credentials
|
||||||
|
|||||||
Reference in New Issue
Block a user